Commit 6b95b76d authored by Michael Hanselmann's avatar Michael Hanselmann

mcpu: Remove unused exclusive_BGL attribute

Signed-off-by: default avatarMichael Hanselmann <hansmi@google.com>
Reviewed-by: default avatarGuido Trotter <ultrotter@google.com>
parent 5aab242c
......@@ -130,7 +130,6 @@ class Processor(object):
"""
self.context = context
self._cbs = None
self.exclusive_BGL = False
self.rpc = rpc.RpcRunner(context.cfg)
self.hmclass = HooksMaster
......@@ -295,14 +294,12 @@ class Processor(object):
self._ReportLocks(locking.LEVEL_CLUSTER, [locking.BGL],
not lu_class.REQ_BGL, True)
try:
self.exclusive_BGL = lu_class.REQ_BGL
lu = lu_class(self, op, self.context, self.rpc)
lu.ExpandNames()
assert lu.needed_locks is not None, "needed_locks not set by LU"
result = self._LockAndExecLU(lu, locking.LEVEL_INSTANCE)
finally:
self.context.glm.release(locking.LEVEL_CLUSTER)
self.exclusive_BGL = False
finally:
self._cbs = 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