Commit 26e88cde authored by Michael Hanselmann's avatar Michael Hanselmann
Browse files

LUClusterRedistConf: Use node allocation lock



All node locks are acquired.
Signed-off-by: default avatarMichael Hanselmann <hansmi@google.com>
Reviewed-by: default avatarHelga Velroyen <helgav@google.com>
parent 9cbfc69a
......@@ -4614,8 +4614,9 @@ class LUClusterRedistConf(NoHooksLU):
def ExpandNames(self):
self.needed_locks = {
locking.LEVEL_NODE: locking.ALL_SET,
locking.LEVEL_NODE_ALLOC: locking.ALL_SET,
}
self.share_locks[locking.LEVEL_NODE] = 1
self.share_locks = _ShareAll()
 
def Exec(self, feedback_fn):
"""Redistribute the configuration.
......
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