Revision 984f7c32
b/daemons/ganeti-masterd | ||
---|---|---|
333 | 333 |
# Create a ConfigWriter... |
334 | 334 |
self.cfg = config.ConfigWriter() |
335 | 335 |
# And a GanetiLockingManager... |
336 |
self.GLM = locking.GanetiLockManager(
|
|
336 |
self.glm = locking.GanetiLockManager(
|
|
337 | 337 |
self.cfg.GetNodeList(), |
338 | 338 |
self.cfg.GetInstanceList()) |
339 | 339 |
|
b/lib/mcpu.py | ||
---|---|---|
125 | 125 |
|
126 | 126 |
# Acquire the Big Ganeti Lock exclusively if this LU requires it, and in a |
127 | 127 |
# shared fashion otherwise (to prevent concurrent run with an exclusive LU. |
128 |
self.context.GLM.acquire(locking.LEVEL_CLUSTER, [locking.BGL],
|
|
128 |
self.context.glm.acquire(locking.LEVEL_CLUSTER, [locking.BGL],
|
|
129 | 129 |
shared=not lu_class.REQ_BGL) |
130 | 130 |
try: |
131 | 131 |
self.exclusive_BGL = lu_class.REQ_BGL |
... | ... | |
145 | 145 |
if write_count != self.context.cfg.write_count: |
146 | 146 |
hm.RunConfigUpdate() |
147 | 147 |
finally: |
148 |
self.context.GLM.release(locking.LEVEL_CLUSTER)
|
|
148 |
self.context.glm.release(locking.LEVEL_CLUSTER)
|
|
149 | 149 |
self.exclusive_BGL = False |
150 | 150 |
|
151 | 151 |
return result |
Also available in: Unified diff