Merge "Make feedlink icon visible by setting a size"
[lhc/web/wiklou.git] / maintenance / copyJobQueue.php
index e833115..a9c9547 100644 (file)
@@ -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 );
        }
 }