Merge "Sync our version of the interprocess lock"

This commit is contained in:
Jenkins
2014-06-19 16:44:54 +00:00
committed by Gerrit Code Review

View File

@@ -388,7 +388,6 @@ class _InterProcessLock(object):
try:
self.unlock()
self.lockfile.close()
# This is fixed in: https://review.openstack.org/70506
LOG.debug('Released file lock "%s"', self.fname)
except IOError:
LOG.exception("Could not release the acquired lock `%s`",
@@ -397,6 +396,9 @@ class _InterProcessLock(object):
def __exit__(self, exc_type, exc_val, exc_tb):
self.release()
def exists(self):
return os.path.exists(self.fname)
def trylock(self):
raise NotImplementedError()