always order by page_id for dumps of current revisions
authorAriel T. Glenn <ariel@wikimedia.org>
Thu, 25 Oct 2018 10:23:01 +0000 (13:23 +0300)
committerArielGlenn <ariel@wikimedia.org>
Mon, 27 May 2019 18:42:54 +0000 (18:42 +0000)
Also drop ordering of revs within pages, since there is only one
revision being dumped

Bug: T207628
Change-Id: I5e4f0bea7b54506ca389818407c43152a290da6e

includes/export/WikiExporter.php

index ca63dfe..e8044af 100644 (file)
@@ -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...