Revision 984f7c32 lib/mcpu.py
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