From: Michael Hanselmann Date: Fri, 29 Apr 2011 10:45:47 +0000 (+0200) Subject: locking: Export “list_owned” from lock manager X-Git-Tag: v2.4.2~26 X-Git-Url: https://code.grnet.gr/git/ganeti-local/commitdiff_plain/07cba1bc8915db8635bec72449ab60a42861e1c6 locking: Export “list_owned” from lock manager This is analog to “is_owned” and will be used for assertions. Signed-off-by: Michael Hanselmann Reviewed-by: Iustin Pop --- diff --git a/lib/locking.py b/lib/locking.py index 57d2600..be9cd13 100644 --- a/lib/locking.py +++ b/lib/locking.py @@ -1384,6 +1384,8 @@ class GanetiLockManager: """ return self.__keyring[level]._list_owned() + list_owned = _list_owned + def _upper_owned(self, level): """Check that we don't own any lock at a level greater than the given one.