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

LUClusterRepairDiskSizes: Acquire instance locks in exclusive mode



Instances are modified if their disk size doesn't match.
Signed-off-by: default avatarMichael Hanselmann <hansmi@google.com>
Reviewed-by: default avatarIustin Pop <iustin@google.com>
parent 95440548
......@@ -3192,7 +3192,10 @@ class LUClusterRepairDiskSizes(NoHooksLU):
locking.LEVEL_NODE: locking.ALL_SET,
locking.LEVEL_INSTANCE: locking.ALL_SET,
}
self.share_locks = _ShareAll()
self.share_locks = {
locking.LEVEL_NODE: 1,
locking.LEVEL_INSTANCE: 0,
}
def DeclareLocks(self, level):
if level == locking.LEVEL_NODE and self.wanted_names is not None:
......
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