Bug: T147520
Change-Id: I9fe6acb0ab24127c1e9f3279129ff46c6b480873
+ if ( $this->disabled ) {
+ return; // DBConnRef handle probably survived longer than the LoadBalancer
+ }
+
$domain = $conn->getDomainID();
if ( !isset( $this->mConns['foreignUsed'][$serverIndex][$domain] ) ) {
throw new InvalidArgumentException( __METHOD__ .
$domain = $conn->getDomainID();
if ( !isset( $this->mConns['foreignUsed'][$serverIndex][$domain] ) ) {
throw new InvalidArgumentException( __METHOD__ .
function __destruct() {
// Avoid connection leaks for sanity
function __destruct() {
// Avoid connection leaks for sanity