X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Fobjectcache%2FSqlBagOStuff.php;h=6691f73d2e30206bcf4df4106e1ad452e33ad74c;hb=7babd362babcbf7f20adb8e12edb4f4bc1d4249f;hp=c2860552c0cdf36cbd9ec2f97e8f079da8cd627d;hpb=f1189284588d626e257bb8cfa43e7a8d60c0453f;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/objectcache/SqlBagOStuff.php b/includes/objectcache/SqlBagOStuff.php index c2860552c0..6691f73d2e 100644 --- a/includes/objectcache/SqlBagOStuff.php +++ b/includes/objectcache/SqlBagOStuff.php @@ -808,6 +808,9 @@ class SqlBagOStuff extends BagOStuff { // Main LB is used; wait for any replica DBs to catch up $masterPos = $lb->getMasterPos(); + if ( !$masterPos ) { + return true; // not applicable + } $loop = new WaitConditionLoop( function () use ( $lb, $masterPos ) {