From fdf4b7cbd934f7f8d76de4564c4d4f83d60d8e4d Mon Sep 17 00:00:00 2001 From: Sean Pringle Date: Tue, 14 Jan 2014 13:36:29 +1000 Subject: [PATCH] SpecialContributions: Avoid using 'contributions' slave for getParentLengths Bug: 59987 Change-Id: I65d8eb14c7ea17fd732339e2e27a98a95e60cbd3 --- includes/specials/SpecialContributions.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/includes/specials/SpecialContributions.php b/includes/specials/SpecialContributions.php index 6b56c2fa2a..0a24661b3f 100644 --- a/includes/specials/SpecialContributions.php +++ b/includes/specials/SpecialContributions.php @@ -856,7 +856,8 @@ class ContribsPager extends ReverseChronologicalPager { $batch->add( $row->page_namespace, $row->page_title ); } } - $this->mParentLens = Revision::getParentLengths( $this->getDatabase(), $revIds ); + # Bug 59987: avoid using 'contributions' db connection + $this->mParentLens = Revision::getParentLengths( wfGetDB( DB_SLAVE ), $revIds ); $batch->execute(); $this->mResult->seek( 0 ); } -- 2.20.1