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:
64e5725
)
wfGetDB() and wfGetDB(DB_SLAVE) would crash if no previous connections were opened.
author
Domas Mituzas
<midom@users.mediawiki.org>
Fri, 26 Jan 2007 13:48:25 +0000
(13:48 +0000)
committer
Domas Mituzas
<midom@users.mediawiki.org>
Fri, 26 Jan 2007 13:48:25 +0000
(13:48 +0000)
includes/LoadBalancer.php
patch
|
blob
|
history
diff --git
a/includes/LoadBalancer.php
b/includes/LoadBalancer.php
index
145bc5a
..
f256b7e
100644
(file)
--- a/
includes/LoadBalancer.php
+++ b/
includes/LoadBalancer.php
@@
-30,7
+30,7
@@
class LoadBalancer {
$this->mWriteIndex = -1;
$this->mForce = -1;
$this->mConnections = array();
- $this->mLastIndex = 1;
+ $this->mLastIndex =
-
1;
$this->mLoads = array();
$this->mWaitForFile = false;
$this->mWaitForPos = false;