Merge "Avoid redis lock's expire_time exceeding timeout."
This commit is contained in:
commit
27c4f158e5
@ -54,7 +54,7 @@ etcd3gw =
|
||||
zake =
|
||||
zake>=0.1.6 # Apache-2.0
|
||||
redis =
|
||||
redis>=2.10.0 # MIT
|
||||
redis>=3.1.0 # MIT
|
||||
postgresql =
|
||||
psycopg2>=2.5 # LGPL/ZPL
|
||||
mysql =
|
||||
|
@ -108,7 +108,7 @@ class RedisLock(locking.Lock):
|
||||
with self._exclusive_access:
|
||||
if self.acquired:
|
||||
with _translate_failures():
|
||||
self._lock.extend(self._lock.timeout)
|
||||
self._lock.reacquire()
|
||||
return True
|
||||
return False
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user