objectcache: Change variable name from master to primary
Change-Id: I3574ea348f32ccd289a0b4158fe93b5cb48ddffa
This commit is contained in:
parent
65f67552e6
commit
fe7bd754ee
1 changed files with 4 additions and 4 deletions
|
|
@ -1861,14 +1861,14 @@ class SqlBagOStuff extends MediumSpecificBagOStuff {
|
|||
|
||||
try {
|
||||
// Wait for any replica DBs to catch up
|
||||
$masterPos = $lb->getPrimaryPos();
|
||||
if ( !$masterPos ) {
|
||||
$primaryPos = $lb->getPrimaryPos();
|
||||
if ( !$primaryPos ) {
|
||||
return true; // not applicable
|
||||
}
|
||||
|
||||
$loop = new WaitConditionLoop(
|
||||
static function () use ( $lb, $masterPos ) {
|
||||
return $lb->waitForAll( $masterPos, 1 );
|
||||
static function () use ( $lb, $primaryPos ) {
|
||||
return $lb->waitForAll( $primaryPos, 1 );
|
||||
},
|
||||
$this->syncTimeout,
|
||||
$this->busyCallbacks
|
||||
|
|
|
|||
Loading…
Reference in a new issue