X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;ds=sidebyside;f=includes%2Frevisiondelete%2FRevDelRevisionList.php;h=f0b1907d837f4975ce120a9b7518d909c93a16e7;hb=e758226c91935a1df2b6fd3ed1f18922d8bfb45b;hp=3486645c05e6bef0fcf1dd19576f948fd1e8746d;hpb=10d3db9af03d46348cb51a8433519d15da84bc64;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/revisiondelete/RevDelRevisionList.php b/includes/revisiondelete/RevDelRevisionList.php index 3486645c05..f0b1907d83 100644 --- a/includes/revisiondelete/RevDelRevisionList.php +++ b/includes/revisiondelete/RevDelRevisionList.php @@ -60,13 +60,16 @@ class RevDelRevisionList extends RevDelList { public function doQuery( $db ) { $ids = array_map( 'intval', $this->ids ); $queryInfo = [ - 'tables' => [ 'revision', 'user' ], + 'tables' => [ 'revision', 'page', 'user' ], 'fields' => array_merge( Revision::selectFields(), Revision::selectUserFields() ), 'conds' => [ 'rev_page' => $this->title->getArticleID(), 'rev_id' => $ids, ], - 'options' => [ 'ORDER BY' => 'rev_id DESC' ], + 'options' => [ + 'ORDER BY' => 'rev_id DESC', + 'USE INDEX' => [ 'revision' => 'PRIMARY' ] // workaround for MySQL bug (T104313) + ], 'join_conds' => [ 'page' => Revision::pageJoinCond(), 'user' => Revision::userJoinCond(),