r69560 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r69559‎ | r69560 | r69561 >
Date:19:02, 19 July 2010
Author:ariel
Status:ok
Tags:
Comment:
initialize spawn and prefetch in Runner.__init__
Modified paths:
  • /trunk/backup/worker.py (modified) (history)

Diff [purge]

Index: trunk/backup/worker.py
@@ -61,6 +61,8 @@
6262 self.wiki = wiki
6363 self.config = wiki.config
6464 self.dbName = wiki.dbName
 65+ self.prefetch = prefetch
 66+ self.spawn = spawn
6567
6668 if date:
6769 # Override, continuing a past dump?
@@ -248,10 +250,10 @@
249251 XmlStub("First-pass for page XML data dumps"),
250252 XmlDump("articles",
251253 "<big><b>Articles, templates, image descriptions, and primary meta-pages.</b></big>",
252 - "This contains current versions of article content, and is the archive most mirror sites will probably want.", prefetch, spawn),
 254+ "This contains current versions of article content, and is the archive most mirror sites will probably want.", self.prefetch, self.spawn),
253255 XmlDump("meta-current",
254256 "All pages, current versions only.",
255 - "Discussion and user pages are included in this complete archive. Most mirrors won't want this extra material.", prefetch, spawn),
 257+ "Discussion and user pages are included in this complete archive. Most mirrors won't want this extra material.", self.prefetch, self.spawn),
256258 XmlLogging("Pull out all logging data")]
257259 if self.wiki.hasFlaggedRevs():
258260 self.items.append(
@@ -264,7 +266,7 @@
265267 BigXmlDump("meta-history",
266268 "All pages with complete page edit history (.bz2)",
267269 "These dumps can be *very* large, uncompressing up to 20 times the archive download size. " +
268 - "Suitable for archival and statistical use, most mirror sites won't want or need this.", prefetch, spawn))
 270+ "Suitable for archival and statistical use, most mirror sites won't want or need this.", self.prefetch, self.spawn))
269271 self.items.append(
270272 XmlRecompressDump("meta-history",
271273 "All pages with complete edit history (.7z)",

Status & tagging log