[FileBackend] Avoid concurrency for the 1 op case in doQuickOperationsInternal().
authorAaron Schulz <aschulz@wikimedia.org>
Wed, 15 May 2013 17:34:31 +0000 (10:34 -0700)
committerAaron Schulz <aschulz@wikimedia.org>
Wed, 15 May 2013 17:35:51 +0000 (10:35 -0700)
Change-Id: I6526d3b77fc078d80a0fb537d504a7fabcbb4c41

includes/filebackend/FileBackendStore.php

index e20c6fc..8b365b5 100644 (file)
@@ -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)