Made QueryPage::preprocessResults also use the vslow group
authorAaron Schulz <aschulz@wikimedia.org>
Fri, 10 Apr 2015 09:31:35 +0000 (02:31 -0700)
committerAaron Schulz <aschulz@wikimedia.org>
Fri, 10 Apr 2015 09:31:35 +0000 (02:31 -0700)
Change-Id: If5893ef9e2a18684c8cd1ce1b6149742b392a3c3

includes/specialpage/QueryPage.php

index 1ff7e3f..da752f6 100644 (file)
@@ -527,7 +527,7 @@ abstract class QueryPage extends SpecialPage {
 
                $this->numRows = $res->numRows();
 
-               $dbr = wfGetDB( DB_SLAVE );
+               $dbr = $this->getRecacheDB();
                $this->preprocessResults( $dbr, $res );
 
                $out->addHTML( Xml::openElement( 'div', array( 'class' => 'mw-spcontent' ) ) );