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 "installer: Run the LESS compiler for *.less files"
[lhc/web/wiklou.git]
/
includes
/
objectcache
/
BagOStuff.php
diff --git
a/includes/objectcache/BagOStuff.php
b/includes/objectcache/BagOStuff.php
index
fbde251
..
857943e
100644
(file)
--- a/
includes/objectcache/BagOStuff.php
+++ b/
includes/objectcache/BagOStuff.php
@@
-170,7
+170,7
@@
abstract class BagOStuff {
*/
public function lock( $key, $timeout = 60 ) {
$timestamp = microtime( true ); // starting UNIX timestamp
*/
public function lock( $key, $timeout = 60 ) {
$timestamp = microtime( true ); // starting UNIX timestamp
- if ( $this->add( "{$key}:lock", $timeout ) ) {
+ if ( $this->add( "{$key}:lock",
1,
$timeout ) ) {
return true;
}
return true;
}
@@
-186,8
+186,8
@@
abstract class BagOStuff {
$sleep *= 2;
}
usleep( $sleep ); // back off
$sleep *= 2;
}
usleep( $sleep ); // back off
- $locked = $this->add( "{$key}:lock", $timeout );
- } while( !$locked );
+ $locked = $this->add( "{$key}:lock",
1,
$timeout );
+ } while
( !$locked );
return $locked;
}
return $locked;
}