r41092 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r41091‎ | r41092 | r41093 >
Date:08:44, 21 September 2008
Author:tstarling
Status:old
Tags:
Comment:
wfGetDB() needs a parameter.
Modified paths:
  • /trunk/phase3/includes/Article.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/Article.php
@@ -2137,7 +2137,7 @@
21382138 * @return int approximate revision count
21392139 */
21402140 function estimateRevisionCount() {
2141 - $dbr = wfGetDB();
 2141+ $dbr = wfGetDB( DB_SLAVE );
21422142 // For an exact count...
21432143 //return $dbr->selectField( 'revision', 'COUNT(*)',
21442144 // array( 'rev_page' => $this->getId() ), __METHOD__ );

Follow-up revisions

RevisionCommit summaryAuthorDate
r41234Revert some recent ES-related changes -- they made behavior much worse when w...brion18:09, 24 September 2008