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 "filebackend: replace wfTimestamp() calls with ConvertibleTimestamp::convert()"
[lhc/web/wiklou.git]
/
maintenance
/
getReplicaServer.php
diff --git
a/maintenance/getReplicaServer.php
b/maintenance/getReplicaServer.php
index
c0c6284
..
7e9104c
100644
(file)
--- a/
maintenance/getReplicaServer.php
+++ b/
maintenance/getReplicaServer.php
@@
-30,7
+30,7
@@
use MediaWiki\MediaWikiServices;
*
* @ingroup Maintenance
*/
*
* @ingroup Maintenance
*/
-class Get
Slave
Server extends Maintenance {
+class Get
Replica
Server 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" );
@@
-38,10
+38,7
@@
class GetSlaveServer extends Maintenance {
}
public function execute() {
}
public function execute() {
- global $wgAllDBsAreLocalhost;
- if ( $wgAllDBsAreLocalhost ) {
- $host = 'localhost';
- } elseif ( $this->hasOption( 'group' ) ) {
+ if ( $this->hasOption( 'group' ) ) {
$db = $this->getDB( DB_REPLICA, $this->getOption( 'group' ) );
$host = $db->getServer();
} else {
$db = $this->getDB( DB_REPLICA, $this->getOption( 'group' ) );
$host = $db->getServer();
} else {
@@
-53,5
+50,5
@@
class GetSlaveServer extends Maintenance {
}
}
}
}
-$maintClass = Get
Slave
Server::class;
+$maintClass = Get
Replica
Server::class;
require_once RUN_MAINTENANCE_IF_MAIN;
require_once RUN_MAINTENANCE_IF_MAIN;