objectcache: Change variable name from master to primary

Change-Id: I3574ea348f32ccd289a0b4158fe93b5cb48ddffa
This commit is contained in:
Umherirrender 2021-10-14 21:35:14 +02:00
parent 65f67552e6
commit fe7bd754ee

View file

@ -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