Revision 8a2941c4
b/lib/mcpu.py | ||
---|---|---|
129 | 129 |
given LU and its opcodes. |
130 | 130 |
|
131 | 131 |
""" |
132 |
if level in lu.needed_locks: |
|
132 |
if level not in locking.LEVELS: |
|
133 |
result = self._ExecLU(lu) |
|
134 |
elif level in lu.needed_locks: |
|
133 | 135 |
# This gives a chance to LUs to make last-minute changes after acquiring |
134 | 136 |
# locks at any preceding level. |
135 | 137 |
lu.DeclareLocks(level) |
... | ... | |
146 | 148 |
if lu.needed_locks[level]: |
147 | 149 |
self.context.glm.release(level) |
148 | 150 |
else: |
149 |
result = self._ExecLU(lu)
|
|
151 |
result = self._LockAndExecLU(lu, level + 1)
|
|
150 | 152 |
|
151 | 153 |
return result |
152 | 154 |
|
Also available in: Unified diff