Aaron Schulz has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/63881


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(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/core 
refs/changes/81/63881/1

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: newchange
Gerrit-Change-Id: I6526d3b77fc078d80a0fb537d504a7fabcbb4c41
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/core
Gerrit-Branch: master
Gerrit-Owner: Aaron Schulz <[email protected]>

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

Reply via email to