r80491 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r80490‎ | r80491 | r80492 >
Date:06:13, 18 January 2011
Author:ariel
Status:deferred
Tags:
Comment:
add bz2 history recombine job
Modified paths:
  • /branches/ariel/xmldumps-backup/worker.py (modified) (history)

Diff [purge]

Index: branches/ariel/xmldumps-backup/worker.py
@@ -296,6 +296,13 @@
297297 "All pages with complete page edit history (.bz2)",
298298 "These dumps can be *very* large, uncompressing up to 20 times the archive download size. " +
299299 "Suitable for archival and statistical use, most mirror sites won't want or need this.", self._prefetch, self._spawn, self.chunkInfo.getPagesPerChunkHistory()))
 300+ if (self.chunkInfo.chunksEnabled()):
 301+ self.dumpItems.append(
 302+ RecombineXmlDump("meta-history",
 303+ "metahistorybz2dumprecombine",
 304+ "Recombine all pages with complete edit history (.bz2)",
 305+ "These dumps can be *very* large, uncompressing up to 100 times the archive download size. " +
 306+ "Suitable for archival and statistical use, most mirror sites won't want or need this.", self.chunkInfo.getPagesPerChunkHistory()))
300307 self.dumpItems.append(
301308 XmlRecompressDump("meta-history",
302309 "metahistory7zdump",
@@ -446,6 +453,9 @@
447454 if (job == "metahistory7zdumprecombine"):
448455 if (not self.jobDoneSuccessfully("metahistory7zdump")):
449456 return False
 457+ if (job == "metahistorybz2dumprecombine"):
 458+ if (not self.jobDoneSuccessfully("metahistorybz2dump")):
 459+ return False
450460 if (job == "metahistory7zdump"):
451461 if (not self.jobDoneSuccessfully("xmlstubsdump") or not self.jobDoneSuccessfully("metahistorybz2dump")):
452462 return False

Status & tagging log