From c27ced4f31e50597a53e4682c0088f98a5b9700a Mon Sep 17 00:00:00 2001 From: "Ariel T. Glenn" Date: Thu, 25 Oct 2018 13:23:01 +0300 Subject: [PATCH] always order by page_id for dumps of current revisions Also drop ordering of revs within pages, since there is only one revision being dumped Bug: T207628 Change-Id: I5e4f0bea7b54506ca389818407c43152a290da6e --- includes/export/WikiExporter.php | 1 + 1 file changed, 1 insertion(+) diff --git a/includes/export/WikiExporter.php b/includes/export/WikiExporter.php index ca63dfebf3..e8044af455 100644 --- a/includes/export/WikiExporter.php +++ b/includes/export/WikiExporter.php @@ -399,6 +399,7 @@ class WikiExporter { $this->do_list_authors( $cond ); } $join['revision'] = [ 'JOIN', 'page_id=rev_page AND page_latest=rev_id' ]; + $opts[ 'ORDER BY' ] = [ 'page_id ASC' ]; } elseif ( $this->history & self::STABLE ) { # "Stable" revision dumps... # Default JOIN, to be overridden... -- 2.20.1