Aaron Schulz has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/127279

Change subject: Made runParallelBatches() fully ses the status array on abort
......................................................................

Made runParallelBatches() fully ses the status array on abort

Change-Id: Ie35b28b85e734db6910a42ed384374ba3d594a8e
---
M includes/filebackend/FileOpBatch.php
1 file changed, 2 insertions(+), 0 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/core 
refs/changes/79/127279/1

diff --git a/includes/filebackend/FileOpBatch.php 
b/includes/filebackend/FileOpBatch.php
index e90fcb7..56d7000 100644
--- a/includes/filebackend/FileOpBatch.php
+++ b/includes/filebackend/FileOpBatch.php
@@ -152,6 +152,8 @@
                                // We can't continue (even with $ignoreErrors) 
as $predicates is wrong.
                                // Log the remaining ops as failed for 
recovery...
                                foreach ( $performOpsBatch as $i => $fileOp ) {
+                                       $status->success[$i] = false;
+                                       ++$status->failCount;
                                        $performOpsBatch[$i]->logFailure( 
'attempt_aborted' );
                                }
                                continue;

-- 
To view, visit https://gerrit.wikimedia.org/r/127279
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: Ie35b28b85e734db6910a42ed384374ba3d594a8e
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/core
Gerrit-Branch: master
Gerrit-Owner: Aaron Schulz <[email protected]>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to