rdbms: Avoid selectDB() call in LoadMonitor new connections
authorAaron Schulz <aschulz@wikimedia.org>
Sat, 19 Aug 2017 17:48:45 +0000 (10:48 -0700)
committerKrinkle <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

index d4e73c9..1749683 100644 (file)
@@ -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
                        }