MediaWiki  REL1_19
waitForSlave.php
Go to the documentation of this file.
00001 <?php
00025 require_once( dirname( __FILE__ ) . '/Maintenance.php' );
00026 
00027 class WaitForSlave extends Maintenance {
00028         public function __construct() {
00029                 $this->addArg( 'maxlag', 'How long to wait for the slaves, default 10 seconds', false );
00030         }
00031         public function execute() {
00032                 wfWaitForSlaves( $this->getArg( 0, 10 ) );
00033         }
00034 }
00035 
00036 $maintClass = "WaitForSlave";
00037 require_once( RUN_MAINTENANCE_IF_MAIN );