dépôts
/
lhc
/
web
/
wiklou.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge "rdbms: tweak var names in LoadMonitor::scaleLoads()/getLagTimes()"
[lhc/web/wiklou.git]
/
maintenance
/
populateParentId.php
diff --git
a/maintenance/populateParentId.php
b/maintenance/populateParentId.php
index
457033a
..
39bc733
100644
(file)
--- a/
maintenance/populateParentId.php
+++ b/
maintenance/populateParentId.php
@@
-46,6
+46,7
@@
class PopulateParentId extends LoggedUpdateMaintenance {
}
protected function doDBUpdates() {
}
protected function doDBUpdates() {
+ $batchSize = $this->getBatchSize();
$db = $this->getDB( DB_MASTER );
if ( !$db->tableExists( 'revision' ) ) {
$this->error( "revision table does not exist" );
$db = $this->getDB( DB_MASTER );
if ( !$db->tableExists( 'revision' ) ) {
$this->error( "revision table does not exist" );
@@
-62,7
+63,7
@@
class PopulateParentId extends LoggedUpdateMaintenance {
}
# Do remaining chunk
$blockStart = intval( $start );
}
# Do remaining chunk
$blockStart = intval( $start );
- $blockEnd = intval( $start ) + $
this->mB
atchSize - 1;
+ $blockEnd = intval( $start ) + $
b
atchSize - 1;
$count = 0;
$changed = 0;
while ( $blockStart <= $end ) {
$count = 0;
$changed = 0;
while ( $blockStart <= $end ) {
@@
-116,8
+117,8
@@
class PopulateParentId extends LoggedUpdateMaintenance {
__METHOD__ );
$count++;
}
__METHOD__ );
$count++;
}
- $blockStart += $
this->mB
atchSize;
- $blockEnd += $
this->mB
atchSize;
+ $blockStart += $
b
atchSize;
+ $blockEnd += $
b
atchSize;
wfWaitForSlaves();
}
$this->output( "rev_parent_id population complete ... {$count} rows [{$changed} changed]\n" );
wfWaitForSlaves();
}
$this->output( "rev_parent_id population complete ... {$count} rows [{$changed} changed]\n" );
@@
-126,5
+127,5
@@
class PopulateParentId extends LoggedUpdateMaintenance {
}
}
}
}
-$maintClass =
"PopulateParentId"
;
+$maintClass =
PopulateParentId::class
;
require_once RUN_MAINTENANCE_IF_MAIN;
require_once RUN_MAINTENANCE_IF_MAIN;