Revision 6b95b76d lib/mcpu.py

b/lib/mcpu.py
130 130
    """
131 131
    self.context = context
132 132
    self._cbs = None
133
    self.exclusive_BGL = False
134 133
    self.rpc = rpc.RpcRunner(context.cfg)
135 134
    self.hmclass = HooksMaster
136 135

  
......
295 294
        self._ReportLocks(locking.LEVEL_CLUSTER, [locking.BGL],
296 295
                          not lu_class.REQ_BGL, True)
297 296
      try:
298
        self.exclusive_BGL = lu_class.REQ_BGL
299 297
        lu = lu_class(self, op, self.context, self.rpc)
300 298
        lu.ExpandNames()
301 299
        assert lu.needed_locks is not None, "needed_locks not set by LU"
302 300
        result = self._LockAndExecLU(lu, locking.LEVEL_INSTANCE)
303 301
      finally:
304 302
        self.context.glm.release(locking.LEVEL_CLUSTER)
305
        self.exclusive_BGL = False
306 303
    finally:
307 304
      self._cbs = None
308 305

  

Also available in: Unified diff