Commit 9fa08c84 authored by Michael Hanselmann's avatar Michael Hanselmann
Browse files

LUClusterVerifyGroup: Use node allocation lock



See comment in code.
Signed-off-by: default avatarMichael Hanselmann <hansmi@google.com>
Reviewed-by: default avatarHelga Velroyen <helgav@google.com>
parent ec272bab
......@@ -2233,6 +2233,11 @@ class LUClusterVerifyGroup(LogicalUnit, _VerifyErrors):
locking.LEVEL_INSTANCE: inst_names,
locking.LEVEL_NODEGROUP: [self.group_uuid],
locking.LEVEL_NODE: [],
# This opcode is run by watcher every five minutes and acquires all nodes
# for a group. It doesn't run for a long time, so it's better to acquire
# the node allocation lock as well.
locking.LEVEL_NODE_ALLOC: locking.ALL_SET,
}
 
self.share_locks = _ShareAll()
......
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