dépôts
/
lhc
/
web
/
wiklou.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge "Don't repeat label styling"
[lhc/web/wiklou.git]
/
includes
/
objectcache
/
BagOStuff.php
diff --git
a/includes/objectcache/BagOStuff.php
b/includes/objectcache/BagOStuff.php
index
dd74467
..
58ddd6a
100644
(file)
--- a/
includes/objectcache/BagOStuff.php
+++ b/
includes/objectcache/BagOStuff.php
@@
-175,7
+175,7
@@
abstract class BagOStuff {
}
$uRTT = ceil( 1e6 * ( microtime( true ) - $timestamp ) ); // estimate RTT (us)
}
$uRTT = ceil( 1e6 * ( microtime( true ) - $timestamp ) ); // estimate RTT (us)
- $sleep = 2
*
$uRTT; // rough time to do get()+set()
+ $sleep = 2
*
$uRTT; // rough time to do get()+set()
$locked = false; // lock acquired
$attempts = 0; // failed attempts
$locked = false; // lock acquired
$attempts = 0; // failed attempts
@@
-187,7
+187,7
@@
abstract class BagOStuff {
}
usleep( $sleep ); // back off
$locked = $this->add( "{$key}:lock", $timeout );
}
usleep( $sleep ); // back off
$locked = $this->add( "{$key}:lock", $timeout );
- } while( !$locked );
+ } while
( !$locked );
return $locked;
}
return $locked;
}