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 "Allow Status::hasMessage to work with Message objects."
[lhc/web/wiklou.git]
/
maintenance
/
copyJobQueue.php
diff --git
a/maintenance/copyJobQueue.php
b/maintenance/copyJobQueue.php
index
3e19397
..
c5a7827
100644
(file)
--- a/
maintenance/copyJobQueue.php
+++ b/
maintenance/copyJobQueue.php
@@
-21,7
+21,7
@@
* @ingroup Maintenance
*/
* @ingroup Maintenance
*/
-require_once
( __DIR__ . '/Maintenance.php' )
;
+require_once
__DIR__ . '/Maintenance.php'
;
/**
* Copy all jobs from one job queue system to another.
/**
* Copy all jobs from one job queue system to another.
@@
-78,17
+78,15
@@
class CopyJobQueue extends Maintenance {
++$total;
$batch[] = $job;
if ( count( $batch ) >= $this->mBatchSize ) {
++$total;
$batch[] = $job;
if ( count( $batch ) >= $this->mBatchSize ) {
- if ( $dst->push( $batch ) ) {
- $totalOK += count( $batch );
- }
+ $dst->push( $batch );
+ $totalOK += count( $batch );
$batch = array();
$dst->waitForBackups();
}
}
if ( count( $batch ) ) {
$batch = array();
$dst->waitForBackups();
}
}
if ( count( $batch ) ) {
- if ( $dst->push( $batch ) ) {
- $totalOK += count( $batch );
- }
+ $dst->push( $batch );
+ $totalOK += count( $batch );
$dst->waitForBackups();
}
return array( $total, $totalOK );
$dst->waitForBackups();
}
return array( $total, $totalOK );
@@
-96,4
+94,4
@@
class CopyJobQueue extends Maintenance {
}
$maintClass = 'CopyJobQueue';
}
$maintClass = 'CopyJobQueue';
-require_once
( RUN_MAINTENANCE_IF_MAIN )
;
+require_once
RUN_MAINTENANCE_IF_MAIN
;