Commit 984f7c32 authored by Guido Trotter's avatar Guido Trotter
Browse files

Context: s/GLM/glm/

Make the GanetiLockManager instance of GanetiContext lowercase

Reviewed-by: imsnah
parent 8ab8e969
......@@ -333,7 +333,7 @@ class GanetiContext(object):
# Create a ConfigWriter...
self.cfg = config.ConfigWriter()
# And a GanetiLockingManager...
self.GLM = locking.GanetiLockManager(
self.glm = locking.GanetiLockManager(
self.cfg.GetNodeList(),
self.cfg.GetInstanceList())
......
......@@ -125,7 +125,7 @@ class Processor(object):
# Acquire the Big Ganeti Lock exclusively if this LU requires it, and in a
# shared fashion otherwise (to prevent concurrent run with an exclusive LU.
self.context.GLM.acquire(locking.LEVEL_CLUSTER, [locking.BGL],
self.context.glm.acquire(locking.LEVEL_CLUSTER, [locking.BGL],
shared=not lu_class.REQ_BGL)
try:
self.exclusive_BGL = lu_class.REQ_BGL
......@@ -145,7 +145,7 @@ class Processor(object):
if write_count != self.context.cfg.write_count:
hm.RunConfigUpdate()
finally:
self.context.GLM.release(locking.LEVEL_CLUSTER)
self.context.glm.release(locking.LEVEL_CLUSTER)
self.exclusive_BGL = False
return result
......
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