neutron/releasenotes/notes/coordination-df3c0bf55a0c4863.yaml
LIU Yulong 975143fd08 Add a generic coordination lock mechanism
For various synchronized scenarios, this decorator
allows flexible lock name with parameters and names
of underlying functions.
For instance:
    @synchronized('{f_name}-{resource.id}-{snap[name]}')
    def foo(self, resource, snap):

Change-Id: I4bf75be2902cd598a5a5a2c5887d4b4262f3e042
Related-Bug: #1824911
2019-06-06 09:56:58 +08:00

11 lines
389 B
YAML

---
other:
- |
Add a generic coordination lock mechanism for various
scenarios. This decorator allows flexible lock name
with parameters and names of underlying functions. And
in order to achive backward compatibility with python2.7
several functions was copied from the old version of
python inspect. Once python2.7 is retired, we can drop
such duplication.