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:
4529843
)
Fixed bug causing transactions to not be started all the time
author
Tim Starling
<tstarling@users.mediawiki.org>
Sun, 27 Mar 2005 18:06:44 +0000
(18:06 +0000)
committer
Tim Starling
<tstarling@users.mediawiki.org>
Sun, 27 Mar 2005 18:06:44 +0000
(18:06 +0000)
includes/LoadBalancer.php
patch
|
blob
|
history
diff --git
a/includes/LoadBalancer.php
b/includes/LoadBalancer.php
index
f5fdf61
..
8c9aa64
100644
(file)
--- a/
includes/LoadBalancer.php
+++ b/
includes/LoadBalancer.php
@@
-402,7
+402,8
@@
class LoadBalancer {
function closeAll() {
foreach( $this->mConnections as $i => $conn ) {
if ( $this->isOpen( $i ) ) {
- $conn->close();
+ // Need to use this syntax because $conn is a copy not a reference
+ $this->mConnections[$i]->close();
}
}
}
@@
-410,7
+411,8
@@
class LoadBalancer {
function commitAll() {
foreach( $this->mConnections as $i => $conn ) {
if ( $this->isOpen( $i ) ) {
- $conn->immediateCommit();
+ // Need to use this syntax because $conn is a copy not a reference
+ $this->mConnections[$i]->immediateCommit();
}
}
}