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

Change subject: Tweaked BagOStuff::lock() retry times slightly to be faster
......................................................................


Tweaked BagOStuff::lock() retry times slightly to be faster

Change-Id: Id04e373dcd2ed57951b68432fcd7491f4288b028
---
M includes/objectcache/BagOStuff.php
1 file changed, 1 insertion(+), 1 deletion(-)

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



diff --git a/includes/objectcache/BagOStuff.php 
b/includes/objectcache/BagOStuff.php
index 0a23446..85b0b62 100644
--- a/includes/objectcache/BagOStuff.php
+++ b/includes/objectcache/BagOStuff.php
@@ -192,7 +192,7 @@
                $locked = false; // lock acquired
                $attempts = 0; // failed attempts
                do {
-                       if ( ++$attempts >= 3 && $sleep <= 1e6 ) {
+                       if ( ++$attempts >= 3 && $sleep <= 5e5 ) {
                                // Exponentially back off after failed attempts 
to avoid network spam.
                                // About 2*$uRTT*(2^n-1) us of "sleep" happen 
for the next n attempts.
                                $sleep *= 2;

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

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

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

Reply via email to