diff options
Diffstat (limited to 'glance_store/common/utils.py')
-rw-r--r-- | glance_store/common/utils.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/glance_store/common/utils.py b/glance_store/common/utils.py index 49acccb..0ee40f7 100644 --- a/glance_store/common/utils.py +++ b/glance_store/common/utils.py @@ -21,6 +21,8 @@ System-level utilities and helper functions. import logging import uuid +from oslo_concurrency import lockutils + try: from eventlet import sleep except ImportError: @@ -31,6 +33,8 @@ from glance_store.i18n import _ LOG = logging.getLogger(__name__) +synchronized = lockutils.synchronized_with_prefix('glance_store-') + def is_uuid_like(val): """Returns validation of a value as a UUID. |