X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=maintenance%2FupdateSpecialPages.php;h=5ea3828214ac5157036ed83ebdd63d1c7a0a5b0e;hb=08e0ed2b70ba5986a96c701f84a7679c98a6f2fd;hp=c800664cc16c3ac7a675d9cd3a52e7e4465465ce;hpb=5ea952ab62eb74c32aa5ce0c158fb45d192968a4;p=lhc%2Fweb%2Fwiklou.git diff --git a/maintenance/updateSpecialPages.php b/maintenance/updateSpecialPages.php index c800664cc1..5ea3828214 100644 --- a/maintenance/updateSpecialPages.php +++ b/maintenance/updateSpecialPages.php @@ -42,7 +42,7 @@ class UpdateSpecialPages extends Maintenance { public function execute() { global $wgQueryCacheLimit, $wgDisableQueryPageUpdate; - $dbw = wfGetDB( DB_MASTER ); + $dbw = $this->getDB( DB_MASTER ); $this->doSpecialPageCacheUpdates( $dbw ); @@ -109,7 +109,7 @@ class UpdateSpecialPages extends Maintenance { } while ( !wfGetLB()->pingAll() ); $this->output( "Reconnected\n\n" ); } - # Wait for the slave to catch up + # Wait for the replica DB to catch up wfWaitForSlaves(); } else { $this->output( "cheap, skipped\n" ); @@ -153,7 +153,7 @@ class UpdateSpecialPages extends Maintenance { $this->output( $minutes . 'm ' ); } $this->output( sprintf( "%.2fs\n", $seconds ) ); - # Wait for the slave to catch up + # Wait for the replica DB to catch up wfWaitForSlaves(); } }