From 75af3f7669938e799df28adce228f0a5a9d7e109 Mon Sep 17 00:00:00 2001 From: John Griffith Date: Tue, 26 Mar 2013 10:19:47 -0600 Subject: [PATCH] Sync lockutils from oslo-incubator stable/grizzly. 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 (cherry picked from commit 649e8926cf6a6ee1cc01a34e6f718e0996feb930) --- cinder/openstack/common/lockutils.py | 1 - 1 file changed, 1 deletion(-) diff --git a/cinder/openstack/common/lockutils.py b/cinder/openstack/common/lockutils.py index f5d260c21..0c6b26c41 100644 --- a/cinder/openstack/common/lockutils.py +++ b/cinder/openstack/common/lockutils.py @@ -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 -- 2.45.2