From 5d233fdc07cf179277403dc18e21bb4503326eba Mon Sep 17 00:00:00 2001 From: Aaron Schulz Date: Sun, 11 Sep 2016 06:36:51 -0700 Subject: [PATCH] Use DB_REPLICA in ContribsPager Change-Id: Ic225b9c41d989722677caf323846783d7e0638a4 --- includes/specials/pagers/ContribsPager.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/specials/pagers/ContribsPager.php b/includes/specials/pagers/ContribsPager.php index bc0ebc2bd8..a145e458d0 100644 --- a/includes/specials/pagers/ContribsPager.php +++ b/includes/specials/pagers/ContribsPager.php @@ -73,7 +73,7 @@ class ContribsPager extends ReverseChronologicalPager { // Most of this code will use the 'contributions' group DB, which can map to replica DBs // with extra user based indexes or partioning by user. The additional metadata // queries should use a regular replica DB since the lookup pattern is not all by user. - $this->mDbSecondary = wfGetDB( DB_SLAVE ); // any random replica DB + $this->mDbSecondary = wfGetDB( DB_REPLICA ); // any random replica DB $this->mDb = wfGetDB( DB_REPLICA, 'contributions' ); } -- 2.20.1