Merge "redis: log an error on release failure"

This commit is contained in:
Jenkins 2017-08-23 17:08:07 +00:00 committed by Gerrit Code Review
commit 47ed0b9a9e
1 changed files with 2 additions and 1 deletions

View File

@ -99,7 +99,8 @@ class RedisLock(locking.Lock):
with _translate_failures():
try:
self._lock.release()
except exceptions.LockError:
except exceptions.LockError as e:
LOG.error("Unable to release lock '%r': %s", self, e)
return False
self._coord._acquired_locks.discard(self)
return True