Merge "rdbms: Deprecate getLazyConnectionRef"
This commit is contained in:
commit
ed3641f1bc
2 changed files with 2 additions and 1 deletions
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
|
|
@ -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
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Reference in a new issue