From 97fd60fdbaa6b30ca4edbe0223ff700a4d351700 Mon Sep 17 00:00:00 2001 From: Aaron Schulz Date: Sat, 19 Aug 2017 10:48:45 -0700 Subject: [PATCH] rdbms: Avoid selectDB() call in LoadMonitor new connections 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 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/libs/rdbms/loadmonitor/LoadMonitor.php b/includes/libs/rdbms/loadmonitor/LoadMonitor.php index d4e73c9547..174968355c 100644 --- 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 } -- 2.20.1