diff options
author | Jenkins <jenkins@review.openstack.org> | 2014-10-06 09:40:52 +0000 |
---|---|---|
committer | Gerrit Code Review <review@openstack.org> | 2014-10-06 09:40:52 +0000 |
commit | a90940a506b7c1bf52ef7d2f2ff52204fdcc6221 (patch) | |
tree | dcc1688652409f83b9802762bbb407c0c1d21e54 | |
parent | 74237d1e21c81a582b23074f60980b406100a10d (diff) | |
parent | 8932510009d4ee80db7b36bc1db6f08e3547543e (diff) | |
download | tooz-a90940a506b7c1bf52ef7d2f2ff52204fdcc6221.tar.gz |
Merge "ipc: Fix acquire lock loop logic"0.7
-rw-r--r-- | tooz/drivers/ipc.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tooz/drivers/ipc.py b/tooz/drivers/ipc.py index c89bdf8..207c843 100644 --- a/tooz/drivers/ipc.py +++ b/tooz/drivers/ipc.py @@ -87,14 +87,14 @@ class IPCLock(locking.Lock): except sysv_ipc.ExistentialError: # Semaphore has been deleted in the mean time, retry from # the beginning! - pass + continue try: self._lock.acquire(timeout=timeout) except sysv_ipc.BusyError: return False except sysv_ipc.ExistentialError: # Likely the lock has been deleted in the meantime, retry - pass + continue else: return True |