00001 <?php 00022 require_once( dirname(__FILE__) . '/Maintenance.php' ); 00023 00024 class WaitForSlave extends Maintenance { 00025 public function __construct() { 00026 $this->addArg( 'maxlag', 'How long to wait for the slaves, default 10 seconds', false ); 00027 } 00028 public function execute() { 00029 wfWaitForSlaves( $this->getArg( 0, 10 ) ); 00030 } 00031 } 00032 00033 $maintClass = "WaitForSlave"; 00034 require_once( DO_MAINTENANCE );