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
Merge "Remove unused wfGetDB() in SiteStats::jobs"
[lhc/web/wiklou.git]
/
maintenance
/
getSlaveServer.php
diff --git
a/maintenance/getSlaveServer.php
b/maintenance/getSlaveServer.php
index
68c1943
..
81228cc
100644
(file)
--- a/
maintenance/getSlaveServer.php
+++ b/
maintenance/getSlaveServer.php
@@
-32,7
+32,7
@@
class GetSlaveServer extends Maintenance {
public function __construct() {
parent::__construct();
$this->addOption( "group", "Query group to check specifically" );
public function __construct() {
parent::__construct();
$this->addOption( "group", "Query group to check specifically" );
- $this->
mDescription = "Report the hostname of a slave server"
;
+ $this->
addDescription( 'Report the hostname of a slave server' )
;
}
public function execute() {
}
public function execute() {
@@
-40,7
+40,7
@@
class GetSlaveServer extends Maintenance {
if ( $wgAllDBsAreLocalhost ) {
$host = 'localhost';
} elseif ( $this->hasOption( 'group' ) ) {
if ( $wgAllDBsAreLocalhost ) {
$host = 'localhost';
} elseif ( $this->hasOption( 'group' ) ) {
- $db =
wfG
etDB( DB_SLAVE, $this->getOption( 'group' ) );
+ $db =
$this->g
etDB( DB_SLAVE, $this->getOption( 'group' ) );
$host = $db->getServer();
} else {
$lb = wfGetLB();
$host = $db->getServer();
} else {
$lb = wfGetLB();