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:
38999cc
)
rdbms: Avoid selectDB() call in LoadMonitor new connections
author
Aaron Schulz
<aschulz@wikimedia.org>
Sat, 19 Aug 2017 17:48:45 +0000
(10:48 -0700)
committer
Krinkle
<krinklemail@gmail.com>
Tue, 22 Aug 2017 16:42:32 +0000
(16:42 +0000)
This is not really necessary and can cause problems if the local
wiki has no tables on the given database.
Bug: T172559
Change-Id: I77c1238bb59b9c060bdec22aa2f7f758e07b748c
includes/libs/rdbms/loadmonitor/LoadMonitor.php
patch
|
blob
|
history
diff --git
a/includes/libs/rdbms/loadmonitor/LoadMonitor.php
b/includes/libs/rdbms/loadmonitor/LoadMonitor.php
index
d4e73c9
..
1749683
100644
(file)
--- a/
includes/libs/rdbms/loadmonitor/LoadMonitor.php
+++ b/
includes/libs/rdbms/loadmonitor/LoadMonitor.php
@@
-146,7
+146,7
@@
class LoadMonitor implements ILoadMonitor {
if ( $conn ) {
$close = false; // already open
} else {
- $conn = $this->parent->openConnection( $i,
$domain
);
+ $conn = $this->parent->openConnection( $i,
''
);
$close = true; // new connection
}