From: Aaron Schulz Date: Wed, 15 May 2013 17:34:31 +0000 (-0700) Subject: [FileBackend] Avoid concurrency for the 1 op case in doQuickOperationsInternal(). X-Git-Tag: 1.31.0-rc.0~19639^2 X-Git-Url: http://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/operations/recherche.php?a=commitdiff_plain;h=40078d1c69178b5cad325fecf84561bc4a070b93;p=lhc%2Fweb%2Fwiklou.git [FileBackend] Avoid concurrency for the 1 op case in doQuickOperationsInternal(). Change-Id: I6526d3b77fc078d80a0fb537d504a7fabcbb4c41 --- 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)