summaryrefslogtreecommitdiff
path: root/maintenance/waitForSlave.php
diff options
context:
space:
mode:
Diffstat (limited to 'maintenance/waitForSlave.php')
-rw-r--r--maintenance/waitForSlave.php5
1 files changed, 3 insertions, 2 deletions
diff --git a/maintenance/waitForSlave.php b/maintenance/waitForSlave.php
index 655be43d..a62d1618 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.
@@ -31,6 +31,7 @@ require_once( __DIR__ . '/Maintenance.php' );
*/
class WaitForSlave extends Maintenance {
public function __construct() {
+ parent::__construct();
$this->addArg( 'maxlag', 'How long to wait for the slaves, default 10 seconds', false );
}
public function execute() {
@@ -39,4 +40,4 @@ class WaitForSlave extends Maintenance {
}
$maintClass = "WaitForSlave";
-require_once( RUN_MAINTENANCE_IF_MAIN );
+require_once RUN_MAINTENANCE_IF_MAIN;