summaryrefslogtreecommitdiff
path: root/maintenance/copyJobQueue.php
diff options
context:
space:
mode:
Diffstat (limited to 'maintenance/copyJobQueue.php')
-rw-r--r--maintenance/copyJobQueue.php11
1 files changed, 5 insertions, 6 deletions
diff --git a/maintenance/copyJobQueue.php b/maintenance/copyJobQueue.php
index e833115b..a9c9547e 100644
--- a/maintenance/copyJobQueue.php
+++ b/maintenance/copyJobQueue.php
@@ -78,19 +78,18 @@ class CopyJobQueue extends Maintenance {
++$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 ) ) {
- if ( $dst->push( $batch ) ) {
- $totalOK += count( $batch );
- }
+ $dst->push( $batch );
+ $totalOK += count( $batch );
$dst->waitForBackups();
}
+
return array( $total, $totalOK );
}
}