Commit 07cba1bc authored by Michael Hanselmann's avatar Michael Hanselmann
Browse files

locking: Export “list_owned” from lock manager



This is analog to “is_owned” and will be used for assertions.
Signed-off-by: default avatarMichael Hanselmann <hansmi@google.com>
Reviewed-by: default avatarIustin Pop <iustin@google.com>
parent d8d838cb
......@@ -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.
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment