projects
/
ganeti-local
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d8d838c
)
locking: Export “list_owned” from lock manager
author
Michael Hanselmann
<hansmi@google.com>
Fri, 29 Apr 2011 10:45:47 +0000
(12:45 +0200)
committer
Michael Hanselmann
<hansmi@google.com>
Fri, 29 Apr 2011 12:41:48 +0000
(14:41 +0200)
This is analog to “is_owned” and will be used for assertions.
Signed-off-by: Michael Hanselmann <hansmi@google.com>
Reviewed-by: Iustin Pop <iustin@google.com>
lib/locking.py
patch
|
blob
|
history
diff --git
a/lib/locking.py
b/lib/locking.py
index
57d2600
..
be9cd13
100644
(file)
--- 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.