Index: trunk/phase3/includes/Status.php |
— | — | @@ -18,7 +18,7 @@ |
19 | 19 | |
20 | 20 | /** Counters for batch operations */ |
21 | 21 | public $successCount = 0, $failCount = 0; |
22 | | - /** Array to indicate which items of the batch operations failed */ |
| 22 | + /** Array to indicate which items of the batch operations were successful */ |
23 | 23 | public $success = array(); |
24 | 24 | |
25 | 25 | /*semi-private*/ var $errors = array(); |
Index: trunk/phase3/includes/filerepo/LocalFile.php |
— | — | @@ -1947,6 +1947,13 @@ |
1948 | 1948 | return $status; |
1949 | 1949 | } |
1950 | 1950 | |
| 1951 | + /** |
| 1952 | + * Cleanup a failed batch. The batch was only partially successful, so |
| 1953 | + * rollback by removing all items that were succesfully copied. |
| 1954 | + * |
| 1955 | + * @param Status $storeStatus |
| 1956 | + * @param array $storeBatch |
| 1957 | + */ |
1951 | 1958 | function cleanupFailedBatch( $storeStatus, $storeBatch ) { |
1952 | 1959 | $cleanupBatch = array(); |
1953 | 1960 | |