Homestyx hydra
Diffusion hydra 15dbf6bdf0a5

When a GlobalLock with an external connection is released, don't return it to…

Description

When a GlobalLock with an external connection is released, don't return it to the pool

Summary:
Ref T13627. Currently, global locks always return connections (even external connections) to the connection pool when unlocked.

This code is obviously buggy: isExternalConnection is set to false immediately before it is tested. This bug has existed since this code was introduced, in D15792.

  • Instead of storing a flag, store the actual connection.
  • Don't clear it when unlocking.
  • Don't return external connections to the pool.

Test Plan:

  • Added a failing test, made it pass.

Maniphest Tasks: T13627

Differential Revision: https://secure.phabricator.com/D21583

Details

Provenance
epriestleyAuthored on Mar 2 2021, 3:43 PM
sirocylPushed on Oct 16 2024, 5:49 AM
Parents
R1:55f4a258d2de: When updating revisions in responset to commits, use the omnipotent viewer to…
Branches
Unknown
Tags
Unknown

Event Timeline