]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commitdiff
Sync lockutils from oslo-incubator stable/grizzly.
authorJohn Griffith <john.griffith@solidfire.com>
Tue, 26 Mar 2013 16:19:47 +0000 (10:19 -0600)
committerJohn Griffith <john.griffith@solidfire.com>
Tue, 26 Mar 2013 16:22:01 +0000 (10:22 -0600)
Changes include:

3cb71ff Locking edge case when lock_path does not exist
21925b6 Fix locking issues in Windows
547ab34 Fix Copyright Headers - Rename LLC to Foundation

Fix bug 1158179.

Change-Id: I0d5fb58bef593233068accfcea0dff9fa05f61ef

cinder/openstack/common/lockutils.py

index f5d260c213ecbeec2ec8f7f0d067399e8a235dc3..0c6b26c41dccd66d7341f6cc1785e7d41a022c67 100644 (file)
@@ -207,7 +207,6 @@ def synchronized(name, lock_file_prefix, external=False, lock_path=None):
                             local_lock_path = tempfile.mkdtemp()
 
                         if not os.path.exists(local_lock_path):
-                            cleanup_dir = True
                             fileutils.ensure_tree(local_lock_path)
 
                         # NOTE(mikal): the lock name cannot contain directory