dépôts
/
lhc
/
web
/
wiklou.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8c1932e
)
Made getMaxLag() skip checking the master DB
author
Aaron Schulz
<aschulz@wikimedia.org>
Wed, 9 Jul 2014 19:11:32 +0000
(12:11 -0700)
committer
Aaron Schulz
<aschulz@wikimedia.org>
Wed, 9 Jul 2014 19:11:32 +0000
(12:11 -0700)
Change-Id: I81a9102570bf9a45af56f31d04e3a0f2be72b919
includes/db/LoadBalancer.php
patch
|
blob
|
history
diff --git
a/includes/db/LoadBalancer.php
b/includes/db/LoadBalancer.php
index
b3f9210
..
0c4188c
100644
(file)
--- a/
includes/db/LoadBalancer.php
+++ b/
includes/db/LoadBalancer.php
@@
-1050,6
+1050,9
@@
class LoadBalancer {
$maxIndex = 0;
if ( $this->getServerCount() > 1 ) { // no replication = no lag
foreach ( $this->mServers as $i => $conn ) {
+ if ( $i == $this->getWriterIndex() ) {
+ continue; // nothing to check
+ }
$conn = false;
if ( $wiki === false ) {
$conn = $this->getAnyOpenConnection( $i );