ArielGlenn has submitted this change and it was merged.

Change subject: dumps: for small wikis that are dumped in one run, fix item 
range
......................................................................


dumps: for small wikis that are dumped in one run, fix item range

previously the last item would be dumped twice, off by one error

Change-Id: If083054966e40520b88cde93daccc52c4146892a
---
M xmldumps-backup/xmlstreams.py
1 file changed, 2 insertions(+), 2 deletions(-)

Approvals:
  ArielGlenn: Looks good to me, approved
  jenkins-bot: Verified



diff --git a/xmldumps-backup/xmlstreams.py b/xmldumps-backup/xmlstreams.py
index c0d1bc3..2d302ee 100644
--- a/xmldumps-backup/xmlstreams.py
+++ b/xmldumps-backup/xmlstreams.py
@@ -50,9 +50,9 @@
     piece_command.append("--skip-footer")
     if interval <= end:
         upto = interval + start
-        piece_command.extend(["--end", str(upto)])
     else:
-        upto = end
+        upto = end+1
+    piece_command.extend(["--end", str(upto)])
 
     do_xml_piece(piece_command, outfiles, ends_with, dryrun)
 

-- 
To view, visit https://gerrit.wikimedia.org/r/216416
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: If083054966e40520b88cde93daccc52c4146892a
Gerrit-PatchSet: 1
Gerrit-Project: operations/dumps
Gerrit-Branch: ariel
Gerrit-Owner: ArielGlenn <ar...@wikimedia.org>
Gerrit-Reviewer: ArielGlenn <ar...@wikimedia.org>
Gerrit-Reviewer: jenkins-bot <>

_______________________________________________
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to