Commit d9d9e0d9 authored by Michael Hanselmann's avatar Michael Hanselmann
Browse files

LUNodeQueryvols: Acquire all locks in shared mode

Nothing is being written to.
Signed-off-by: default avatarMichael Hanselmann <>
Reviewed-by: default avatarIustin Pop <>
parent efcb184e
......@@ -4614,8 +4614,9 @@ class LUNodeQueryvols(NoHooksLU):
def ExpandNames(self):
self.share_locks = _ShareAll()
self.needed_locks = {}
self.share_locks[locking.LEVEL_NODE] = 1
if not self.op.nodes:
self.needed_locks[locking.LEVEL_NODE] = locking.ALL_SET
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