Index: trunk/phase3/includes/Article.php |
— | — | @@ -2137,7 +2137,7 @@ |
2138 | 2138 | * @return int approximate revision count |
2139 | 2139 | */ |
2140 | 2140 | function estimateRevisionCount() { |
2141 | | - $dbr = wfGetDB(); |
| 2141 | + $dbr = wfGetDB( DB_SLAVE ); |
2142 | 2142 | // For an exact count... |
2143 | 2143 | //return $dbr->selectField( 'revision', 'COUNT(*)', |
2144 | 2144 | // array( 'rev_page' => $this->getId() ), __METHOD__ ); |