http://www.mediawiki.org/wiki/Special:Code/MediaWiki/80491

Revision: 80491
Author:   ariel
Date:     2011-01-18 06:13:19 +0000 (Tue, 18 Jan 2011)
Log Message:
-----------
add bz2 history recombine job

Modified Paths:
--------------
    branches/ariel/xmldumps-backup/worker.py

Modified: branches/ariel/xmldumps-backup/worker.py
===================================================================
--- branches/ariel/xmldumps-backup/worker.py    2011-01-18 05:27:20 UTC (rev 
80490)
+++ branches/ariel/xmldumps-backup/worker.py    2011-01-18 06:13:19 UTC (rev 
80491)
@@ -296,6 +296,13 @@
                                        "All pages with complete page edit 
history (.bz2)",
                                        "These dumps can be *very* large, 
uncompressing up to 20 times the archive download size. " +
                                        "Suitable for archival and statistical 
use, most mirror sites won't want or need this.", self._prefetch, self._spawn, 
self.chunkInfo.getPagesPerChunkHistory()))
+                       if (self.chunkInfo.chunksEnabled()):
+                               self.dumpItems.append(
+                                       RecombineXmlDump("meta-history",
+                                                                  
"metahistorybz2dumprecombine",
+                                                                  "Recombine 
all pages with complete edit history (.bz2)",
+                                                                  "These dumps 
can be *very* large, uncompressing up to 100 times the archive download size. " 
+
+                                                                  "Suitable 
for archival and statistical use, most mirror sites won't want or need this.", 
self.chunkInfo.getPagesPerChunkHistory()))
                        self.dumpItems.append(
                                XmlRecompressDump("meta-history",
                                        "metahistory7zdump",
@@ -446,6 +453,9 @@
                if (job == "metahistory7zdumprecombine"):
                        if (not self.jobDoneSuccessfully("metahistory7zdump")):
                                return False
+               if (job == "metahistorybz2dumprecombine"):
+                       if (not self.jobDoneSuccessfully("metahistorybz2dump")):
+                               return False
                if (job == "metahistory7zdump"):
                        if (not self.jobDoneSuccessfully("xmlstubsdump") or not 
self.jobDoneSuccessfully("metahistorybz2dump")):
                                return False


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

Reply via email to