Index: trunk/extensions/CodeReview/backend/RepoStats.php |
— | — | @@ -85,6 +85,7 @@ |
86 | 86 | */ |
87 | 87 | private function getAuthorStatusCounts( $status ) { |
88 | 88 | $array = array(); |
| 89 | + $dbr = wfGetDB( DB_SLAVE ); |
89 | 90 | $res = $dbr->select( 'code_rev', |
90 | 91 | array( 'COUNT(*) AS revs', 'cr_author' ), |
91 | 92 | array( 'cr_repo_id' => $this->repo->getId(), 'cr_status' => $status ), |