dépôts
/
lhc
/
web
/
wiklou.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
89ff553
)
Tweaked BagOStuff::lock() retry times slightly to be faster
author
Aaron Schulz
<aschulz@wikimedia.org>
Wed, 14 Jan 2015 19:54:38 +0000
(11:54 -0800)
committer
Aaron Schulz
<aschulz@wikimedia.org>
Wed, 14 Jan 2015 19:54:38 +0000
(11:54 -0800)
Change-Id: Id04e373dcd2ed57951b68432fcd7491f4288b028
includes/objectcache/BagOStuff.php
patch
|
blob
|
history
diff --git
a/includes/objectcache/BagOStuff.php
b/includes/objectcache/BagOStuff.php
index
0a23446
..
85b0b62
100644
(file)
--- a/
includes/objectcache/BagOStuff.php
+++ b/
includes/objectcache/BagOStuff.php
@@
-192,7
+192,7
@@
abstract class BagOStuff {
$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;