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 "Add API warnings when upload is same as older versions"
[lhc/web/wiklou.git]
/
maintenance
/
getReplicaServer.php
diff --git
a/maintenance/getReplicaServer.php
b/maintenance/getReplicaServer.php
index
b3e7377
..
6e0a1fe
100644
(file)
--- a/
maintenance/getReplicaServer.php
+++ b/
maintenance/getReplicaServer.php
@@
-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 = $this->getDB( DB_
SLAVE
, $this->getOption( 'group' ) );
+ $db = $this->getDB( DB_
REPLICA
, $this->getOption( 'group' ) );
$host = $db->getServer();
} else {
$lb = wfGetLB();
$host = $db->getServer();
} else {
$lb = wfGetLB();