From 40078d1c69178b5cad325fecf84561bc4a070b93 Mon Sep 17 00:00:00 2001 From: Aaron Schulz Date: Wed, 15 May 2013 10:34:31 -0700 Subject: [PATCH] [FileBackend] Avoid concurrency for the 1 op case in doQuickOperationsInternal(). Change-Id: I6526d3b77fc078d80a0fb537d504a7fabcbb4c41 --- includes/filebackend/FileBackendStore.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/filebackend/FileBackendStore.php b/includes/filebackend/FileBackendStore.php index e20c6fcc5c..8b365b520d 100644 --- a/includes/filebackend/FileBackendStore.php +++ b/includes/filebackend/FileBackendStore.php @@ -1193,7 +1193,7 @@ abstract class FileBackendStore extends FileBackend { $this->clearCache(); $supportedOps = array( 'create', 'store', 'copy', 'move', 'delete', 'null' ); - $async = ( $this->parallelize === 'implicit' ); + $async = ( $this->parallelize === 'implicit' && count( $ops ) > 1 ); $maxConcurrency = $this->concurrency; // throttle $statuses = array(); // array of (index => Status) -- 2.20.1