oops
authorTim Starling <tstarling@users.mediawiki.org>
Sat, 23 Apr 2005 12:43:45 +0000 (12:43 +0000)
committerTim Starling <tstarling@users.mediawiki.org>
Sat, 23 Apr 2005 12:43:45 +0000 (12:43 +0000)
includes/QueryPage.php

index 82cfc36..8838d99 100644 (file)
@@ -132,7 +132,7 @@ class QueryPage {
                                # Do query on the (possibly out of date) slave server
                                $slowDB =& wfGetDB( DB_SLAVE, array( $this->getName(), 'QueryPage-recache', 'vslow' ) );
                                $maxstored = 1000;
-                               $res = $dbr->query( $sql . $this->getOrder() . $dbr->limitResult( $maxstored,0 ), $fname );
+                               $res = $slowDB->query( $sql . $this->getOrder() . $dbr->limitResult( $maxstored,0 ), $fname );
 
                                # Fetch results
                                $insertSql = "INSERT INTO $querycache (qc_type,qc_namespace,qc_title,qc_value) VALUES ";