diff options
| author | Jenkins <jenkins@review.openstack.org> | 2017-03-29 18:12:00 +0000 |
|---|---|---|
| committer | Gerrit Code Review <review@openstack.org> | 2017-03-29 18:12:00 +0000 |
| commit | 9f87cf158d0aeb8e8aedfba04ecf3acdd4cfb0f6 (patch) | |
| tree | ff1f26e5545400b71dfba0323bd5f7c77c470fd0 | |
| parent | afba8d3c22724b4454d558168a6b96c742003c62 (diff) | |
| parent | 059f2ae5406a325017ad181ace1e5b7c5bff0d22 (diff) | |
| download | tooz-1.54.0.tar.gz | |
Merge "redis: fix concurrent access on acquire()"1.54.0
| -rw-r--r-- | tooz/drivers/redis.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tooz/drivers/redis.py b/tooz/drivers/redis.py index f7ae220..7a55af4 100644 --- a/tooz/drivers/redis.py +++ b/tooz/drivers/redis.py @@ -88,7 +88,8 @@ class RedisLock(locking.Lock): acquired = self._lock.acquire( blocking=blocking, blocking_timeout=timeout) if acquired: - self._coord._acquired_locks.add(self) + with self._exclusive_access: + self._coord._acquired_locks.add(self) return acquired def release(self): |
