Commit 0ee383bf authored by Michael Hanselmann's avatar Michael Hanselmann
Browse files

Fix build after commit 9b7e05a6

Commit 9b7e05a6

 didn't quite work as expected: glm.is_owned expects a
locking level, not a lock name.
Signed-off-by: default avatarMichael Hanselmann <hansmi@google.com>
Reviewed-by: default avatarHelga Velroyen <helgav@google.com>
parent 5d630c22
......@@ -7623,7 +7623,7 @@ class LUInstanceRename(LogicalUnit):
# Change the instance lock. This is definitely safe while we hold the BGL.
# Otherwise the new lock would have to be added in acquired mode.
assert self.REQ_BGL
assert self.glm.is_owned(locking.BGL)
assert locking.BGL in self.owned_locks(locking.LEVEL_CLUSTER)
self.glm.remove(locking.LEVEL_INSTANCE, old_name)
self.glm.add(locking.LEVEL_INSTANCE, self.op.new_name)
 
......
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