Merge "Pass function name in SearchMySQL::minSearchLength"
authorjenkins-bot <jenkins-bot@gerrit.wikimedia.org>
Sun, 12 Jul 2015 20:26:45 +0000 (20:26 +0000)
committerGerrit Code Review <gerrit@wikimedia.org>
Sun, 12 Jul 2015 20:26:45 +0000 (20:26 +0000)
includes/search/SearchMySQL.php

index fa2423b..246f115 100644 (file)
@@ -439,7 +439,7 @@ class SearchMySQL extends SearchDatabase {
                        $sql = "SHOW GLOBAL VARIABLES LIKE 'ft\\_min\\_word\\_len'";
 
                        $dbr = wfGetDB( DB_SLAVE );
-                       $result = $dbr->query( $sql );
+                       $result = $dbr->query( $sql, __METHOD__ );
                        $row = $result->fetchObject();
                        $result->free();