https://bugzilla.wikimedia.org/show_bug.cgi?id=61982

            Bug ID: 61982
           Summary: ApiQueryUserContributions Revision::getParentLengths
                    wrong load balancing db connection
           Product: MediaWiki
           Version: 1.23-git
          Hardware: All
                OS: All
            Status: NEW
          Severity: normal
          Priority: Unprioritized
         Component: API
          Assignee: wikibugs-l@lists.wikimedia.org
          Reporter: sprin...@wikimedia.org
                CC: bjor...@wikimedia.org, bryan.tongm...@gmail.com,
                    roan.katt...@gmail.com, s...@reedyboy.net
       Web browser: ---
   Mobile Platform: ---

This is very similiar to Bug 59987 and may need a similar fix.

ApiQueryContributions::execute calls Revision::getParentLengths thus:

$this->parentLens = Revision::getParentLengths( $this->getDB(), $revIds );

The DB handle returned by getDB() is initialized previously to use the
'contributions' name for the database load balancer. This is appropriate for
ApiQueryContributions itself but less-so for Revision::getParentLengths as the
latter query is quite different and limits the optimization options in the back
end.

Consider passing a second normal slave connection instead.

-- 
You are receiving this mail because:
You are the assignee for the bug.
You are on the CC list for the bug.
_______________________________________________
Wikibugs-l mailing list
Wikibugs-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to