From: Sean Pringle Date: Tue, 14 Jan 2014 03:36:29 +0000 (+1000) Subject: SpecialContributions: Avoid using 'contributions' slave for getParentLengths X-Git-Tag: 1.31.0-rc.0~17257^2 X-Git-Url: https://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/exercices/journal.php?a=commitdiff_plain;h=fdf4b7cbd934f7f8d76de4564c4d4f83d60d8e4d;p=lhc%2Fweb%2Fwiklou.git SpecialContributions: Avoid using 'contributions' slave for getParentLengths Bug: 59987 Change-Id: I65d8eb14c7ea17fd732339e2e27a98a95e60cbd3 --- 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 ); }