X-Git-Url: http://git.cyclocoop.org/?a=blobdiff_plain;f=maintenance%2FfixSlaveDesync.php;h=e4e557fe532f7d16c3010ed256e29964a0c32b7b;hb=688200c607640e77029d171803a7a72832519aa2;hp=ab7603de7d393f31a725afd77b30f96d47bea149;hpb=cc54bc97076aebc839c657d8caf021c19ea2bb8f;p=lhc%2Fweb%2Fwiklou.git diff --git a/maintenance/fixSlaveDesync.php b/maintenance/fixSlaveDesync.php index ab7603de7d..e4e557fe53 100644 --- a/maintenance/fixSlaveDesync.php +++ b/maintenance/fixSlaveDesync.php @@ -21,7 +21,7 @@ * @ingroup Maintenance */ -require_once( __DIR__ . '/Maintenance.php' ); +require_once __DIR__ . '/Maintenance.php'; /** * Maintenance script that fixes erroneous page_latest values @@ -106,10 +106,10 @@ class FixSlaveDesync extends Maintenance { $db = wfGetDB( $i ); /* if ( !$db->masterPosWait( $masterFile, $masterPos, 10 ) ) { - $this->output( "Slave is too lagged, aborting\n" ); - $dbw->commit( __METHOD__ ); - sleep(10); - return; + $this->output( "Slave is too lagged, aborting\n" ); + $dbw->commit( __METHOD__ ); + sleep(10); + return; }*/ $latest = $db->selectField( 'page', 'page_latest', array( 'page_id' => $pageID ), __METHOD__ ); $max = $db->selectField( 'revision', 'MAX(rev_id)', false, __METHOD__ ); @@ -213,4 +213,4 @@ class FixSlaveDesync extends Maintenance { } $maintClass = "FixSlaveDesync"; -require_once( RUN_MAINTENANCE_IF_MAIN ); +require_once RUN_MAINTENANCE_IF_MAIN;