(bug 44862) Fixed waitForSlave.php constructor.
authorTyler Anthony Romeo <tylerromeo@gmail.com>
Mon, 11 Feb 2013 03:19:35 +0000 (22:19 -0500)
committerGerrit Code Review <gerrit@wikimedia.org>
Thu, 14 Feb 2013 09:35:58 +0000 (09:35 +0000)
The Maintenance constructor sets up $IP, so all
maintenance scripts must call the parent constructor.
This fixes waitForSlave.php, which used to not do that.

Change-Id: I7a2a50845805894d87bcae9de9289cae10f1f31f

maintenance/waitForSlave.php

index 655be43..df83928 100644 (file)
@@ -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() {