Merge "Avoid redis lock's expire_time exceeding timeout."

This commit is contained in:
Zuul 2020-03-02 11:26:47 +00:00 committed by Gerrit Code Review
commit 27c4f158e5
2 changed files with 2 additions and 2 deletions

View File

@ -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 =

View File

@ -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