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:
1d660b4
)
Reset the error string in LoadBalancer::getConnection() to avoid it crufting up.
author
Aaron Schulz
<aschulz@wikimedia.org>
Thu, 23 May 2013 07:26:33 +0000
(
00:26
-0700)
committer
Aaron Schulz
<aschulz@wikimedia.org>
Thu, 23 May 2013 07:26:46 +0000
(
00:26
-0700)
Change-Id: I89e9fb46367970a0877986cd72d397eef51a0a06
includes/db/LoadBalancer.php
patch
|
blob
|
history
diff --git
a/includes/db/LoadBalancer.php
b/includes/db/LoadBalancer.php
index
12e493a
..
db709b5
100644
(file)
--- a/
includes/db/LoadBalancer.php
+++ b/
includes/db/LoadBalancer.php
@@
-479,6
+479,7
@@
class LoadBalancer {
# Operation-based index
if ( $i == DB_SLAVE ) {
+ $this->mLastError = 'Unknown error'; // reset error string
$i = $this->getReaderIndex( false, $wiki );
# Couldn't find a working server in getReaderIndex()?
if ( $i === false ) {