Thread:Project:Support desk/"this connection was not opened as a foreign connection" - What does that mean?/reply

According to the code https://github.com/wikimedia/mediawiki-core/blob/master/includes/db/LoadBalancer.php#L522

/** * This can happen in code like: * foreach ( $dbs as $db ) { * $conn = $lb->getConnection( DB_SLAVE, array, $db ); * ... * $lb->reuseConnection( $conn ); * } * When a connection to the local DB is opened in this way, reuseConnection * should be ignored */