Merge "rdbms: Deprecate getLazyConnectionRef"

This commit is contained in:
jenkins-bot 2022-03-03 22:48:21 +00:00 committed by Gerrit Code Review
commit ed3641f1bc
2 changed files with 2 additions and 1 deletions

View file

@ -393,6 +393,7 @@ interface ILoadBalancer {
* @return DBConnRef Live connection handle
* @throws DBError If no live handle could be obtained
* @throws DBAccessError If disable() was previously called
* @deprecated since 1.38 use getConnectionRef instead
*/
public function getLazyConnectionRef( $i, $groups = [], $domain = false, $flags = 0 ): DBConnRef;

View file

@ -47,7 +47,7 @@ abstract class SearchDatabase extends SearchEngine {
public function __construct( ILoadBalancer $lb ) {
$this->lb = $lb;
// @TODO: remove this deprecated field in 1.35
$this->db = $lb->getLazyConnectionRef( DB_REPLICA ); // b/c
$this->db = $lb->getConnectionRef( DB_REPLICA ); // b/c
}
/**