X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=maintenance%2FwaitForSlave.php;h=c9b1abba4cab138ab9a32aaf1c7c27b303d0be81;hb=8d71f214fb2cd0eea116c66c45009a276bd5be09;hp=df83928b3fd80c3cad70d0e6e7abe98f64b8605a;hpb=6c5c306699539e8684a14608df0fedbc950c824e;p=lhc%2Fweb%2Fwiklou.git diff --git a/maintenance/waitForSlave.php b/maintenance/waitForSlave.php index df83928b3f..c9b1abba4c 100644 --- a/maintenance/waitForSlave.php +++ b/maintenance/waitForSlave.php @@ -22,7 +22,7 @@ * @see wfWaitForSlaves() */ -require_once( __DIR__ . '/Maintenance.php' ); +require_once __DIR__ . '/Maintenance.php'; /** * Maintenance script to wait until slave lag goes under a certain value. @@ -34,10 +34,11 @@ class WaitForSlave extends Maintenance { parent::__construct(); $this->addArg( 'maxlag', 'How long to wait for the slaves, default 10 seconds', false ); } + public function execute() { wfWaitForSlaves( $this->getArg( 0, 10 ) ); } } $maintClass = "WaitForSlave"; -require_once( RUN_MAINTENANCE_IF_MAIN ); +require_once RUN_MAINTENANCE_IF_MAIN;