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:
12c3f71
)
rdbms: Disable DBConnRef::selectDB() for sanity
author
Aaron Schulz
<aschulz@wikimedia.org>
Tue, 14 Aug 2018 07:27:27 +0000
(
00:27
-0700)
committer
Krinkle
<krinklemail@gmail.com>
Wed, 15 Aug 2018 03:03:51 +0000
(
03:03
+0000)
Bug: T193565
Change-Id: I4276d1a7d77a019e0e60dab4b9ec36c93e418037
includes/libs/rdbms/database/DBConnRef.php
patch
|
blob
|
history
diff --git
a/includes/libs/rdbms/database/DBConnRef.php
b/includes/libs/rdbms/database/DBConnRef.php
index
7cb0604
..
eba1657
100644
(file)
--- a/
includes/libs/rdbms/database/DBConnRef.php
+++ b/
includes/libs/rdbms/database/DBConnRef.php
@@
-371,7
+371,8
@@
class DBConnRef implements IDatabase {
}
public function selectDB( $db ) {
- return $this->__call( __FUNCTION__, func_get_args() );
+ // Disallow things that might confuse the LoadBalancer tracking
+ throw new DBUnexpectedError( $this, "Database selection is disallowed to enable reuse." );
}
public function getDBname() {