jenkins-bot has submitted this change and it was merged.

Change subject: [FileBackend] Avoid concurrency for the 1 op case in 
doQuickOperationsInternal().
......................................................................


[FileBackend] Avoid concurrency for the 1 op case in 
doQuickOperationsInternal().

Change-Id: I6526d3b77fc078d80a0fb537d504a7fabcbb4c41
---
M includes/filebackend/FileBackendStore.php
1 file changed, 1 insertion(+), 1 deletion(-)

Approvals:
  Demon: Looks good to me, approved
  jenkins-bot: Verified



diff --git a/includes/filebackend/FileBackendStore.php 
b/includes/filebackend/FileBackendStore.php
index e20c6fc..8b365b5 100644
--- a/includes/filebackend/FileBackendStore.php
+++ b/includes/filebackend/FileBackendStore.php
@@ -1193,7 +1193,7 @@
                $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)

-- 
To view, visit https://gerrit.wikimedia.org/r/63881
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: I6526d3b77fc078d80a0fb537d504a7fabcbb4c41
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/core
Gerrit-Branch: master
Gerrit-Owner: Aaron Schulz <[email protected]>
Gerrit-Reviewer: Demon <[email protected]>
Gerrit-Reviewer: jenkins-bot

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to