dépôts
/
lhc
/
web
/
wiklou.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Standardised file description headers:
[lhc/web/wiklou.git]
/
maintenance
/
waitForSlave.php
diff --git
a/maintenance/waitForSlave.php
b/maintenance/waitForSlave.php
index
e8c1034
..
a8d8915
100644
(file)
--- a/
maintenance/waitForSlave.php
+++ b/
maintenance/waitForSlave.php
@@
-15,15
+15,16
@@
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
* http://www.gnu.org/copyleft/gpl.html
*
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
* http://www.gnu.org/copyleft/gpl.html
*
+ * @file
* @ingroup Maintenance
* @see wfWaitForSlaves()
*/
* @ingroup Maintenance
* @see wfWaitForSlaves()
*/
-require_once(
"Maintenance.php"
);
+require_once(
dirname( __FILE__ ) . '/Maintenance.php'
);
class WaitForSlave extends Maintenance {
public function __construct() {
class WaitForSlave extends Maintenance {
public function __construct() {
- $this->addArg
s( array( 'maxlag' )
);
+ $this->addArg
( 'maxlag', 'How long to wait for the slaves, default 10 seconds', false
);
}
public function execute() {
wfWaitForSlaves( $this->getArg( 0, 10 ) );
}
public function execute() {
wfWaitForSlaves( $this->getArg( 0, 10 ) );