Merge "SpecialContributions: Avoid using 'contributions' slave for getParentLengths"
authorjenkins-bot <jenkins-bot@gerrit.wikimedia.org>
Tue, 14 Jan 2014 20:14:32 +0000 (20:14 +0000)
committerGerrit Code Review <gerrit@wikimedia.org>
Tue, 14 Jan 2014 20:14:32 +0000 (20:14 +0000)
includes/specials/SpecialContributions.php

index 6b56c2f..0a24661 100644 (file)
@@ -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 );
        }