X-Git-Url: http://git.heureux-cyclage.org/?a=blobdiff_plain;f=maintenance%2FwaitForSlave.php;h=c9b1abba4cab138ab9a32aaf1c7c27b303d0be81;hb=7cb1c09e7e7c8c21a5b431fcd3e5fedf327b0dee;hp=28e1a5430bf1daaaa1f35da24e474bdb9ed07bbf;hpb=f3de84430d8e569d9de9302f1855139edb28df03;p=lhc%2Fweb%2Fwiklou.git diff --git a/maintenance/waitForSlave.php b/maintenance/waitForSlave.php index 28e1a5430b..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,6 +34,7 @@ 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 ) ); }