dépôts
/
lhc
/
web
/
wiklou.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2e4f519
)
open a series of files for xml input, if supplied (used for multiple xml prefetch...
author
Ariel Glenn
<ariel@users.mediawiki.org>
Fri, 28 Jan 2011 19:16:16 +0000
(19:16 +0000)
committer
Ariel Glenn
<ariel@users.mediawiki.org>
Fri, 28 Jan 2011 19:16:16 +0000
(19:16 +0000)
maintenance/backupPrefetch.inc
patch
|
blob
|
history
diff --git
a/maintenance/backupPrefetch.inc
b/maintenance/backupPrefetch.inc
index
b693eb0
..
d3c4e79
100644
(file)
--- a/
maintenance/backupPrefetch.inc
+++ b/
maintenance/backupPrefetch.inc
@@
-45,9
+45,12
@@
class BaseDump {
var $atPageEnd = false;
var $lastPage = 0;
var $lastRev = 0;
+ var $infiles = null;
function BaseDump( $infile ) {
+ $this->infiles = explode(';',$infile);
$this->reader = new XMLReader();
+ $infile = array_shift($this->infiles);
$this->reader->open( $infile );
}
@@
-101,7
+104,12
@@
class BaseDump {
$this->atPageEnd = false;
}
} else {
- $this->atEnd = true;
+ $this->close();
+ if (count($this->infiles)) {
+ $infile = array_shift($this->infiles);
+ $this->reader->open( $infile );
+ $this->atEnd = false;
+ }
}
}