MediaWiki  REL1_21
waitForSlave.php
Go to the documentation of this file.
00001 <?php
00025 require_once( __DIR__ . '/Maintenance.php' );
00026 
00032 class WaitForSlave extends Maintenance {
00033         public function __construct() {
00034                 parent::__construct();
00035                 $this->addArg( 'maxlag', 'How long to wait for the slaves, default 10 seconds', false );
00036         }
00037         public function execute() {
00038                 wfWaitForSlaves( $this->getArg( 0, 10 ) );
00039         }
00040 }
00041 
00042 $maintClass = "WaitForSlave";
00043 require_once( RUN_MAINTENANCE_IF_MAIN );