diff --git a/setup.cfg b/setup.cfg index 7b399c7e..4ecab81b 100644 --- a/setup.cfg +++ b/setup.cfg @@ -52,7 +52,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 = diff --git a/tooz/drivers/redis.py b/tooz/drivers/redis.py index 5a5e771b..6a9f9b8f 100644 --- a/tooz/drivers/redis.py +++ b/tooz/drivers/redis.py @@ -110,7 +110,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