commit 975143fd08f38819859b2251da568af58c8f3a33
Author: LIU Yulong <email address hidden>
Date: Sun Jun 2 20:05:27 2019 +0800
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):
Reviewed: https:/ /review. opendev. org/662629 /git.openstack. org/cgit/ openstack/ neutron/ commit/ ?id=975143fd08f 38819859b2251da 568af58c8f3a33
Committed: https:/
Submitter: Zuul
Branch: master
commit 975143fd08f3881 9859b2251da568a f58c8f3a33
Author: LIU Yulong <email address hidden>
Date: Sun Jun 2 20:05:27 2019 +0800
Add a generic coordination lock mechanism
For various synchronized scenarios, this decorator
@synchronized( '{f_name} -{resource. id}-{snap[ name]}' )
allows flexible lock name with parameters and names
of underlying functions.
For instance:
def foo(self, resource, snap):
Change-Id: I4bf75be2902cd5 98a5a5a2c5887d4 b4262f3e042
Related-Bug: #1824911