X-Git-Url: https://git.heureux-cyclage.org/?p=lhc%2Fweb%2Fwiklou.git;a=blobdiff_plain;f=includes%2Flibs%2Ffilebackend%2FFileOpBatch.php;h=bbcda085c054f8d87b2888f543061f14ae7b1857;hp=2324098dc287ba69f2c8a056eea2e66480cb3eed;hb=e390198c4e4be7632b01173e42050061f1cc346a;hpb=3f59cb9f3a53ad28f8a95fe299c5de6abd24b453 diff --git a/includes/libs/filebackend/FileOpBatch.php b/includes/libs/filebackend/FileOpBatch.php index 2324098dc2..bbcda085c0 100644 --- a/includes/libs/filebackend/FileOpBatch.php +++ b/includes/libs/filebackend/FileOpBatch.php @@ -46,7 +46,7 @@ class FileOpBatch { * * The resulting StatusValue will be "OK" unless: * - a) unexpected operation errors occurred (network partitions, disk full...) - * - b) significant operation errors occurred and 'force' was not set + * - b) predicted operation errors occurred and 'force' was not set * * @param FileOp[] $performOps List of FileOp operations * @param array $opts Batch operation options @@ -66,7 +66,7 @@ class FileOpBatch { $batchId = $journal->getTimestampedUUID(); $ignoreErrors = !empty( $opts['force'] ); $journaled = empty( $opts['nonJournaled'] ); - $maxConcurrency = isset( $opts['concurrency'] ) ? $opts['concurrency'] : 1; + $maxConcurrency = $opts['concurrency'] ?? 1; $entries = []; // file journal entry list $predicates = FileOp::newPredicates(); // account for previous ops in prechecks