Commit c593d9c8 authored by Petr Pudlak's avatar Petr Pudlak
Browse files

Add _UnlockedDropECReservations to ConfigWriter



There was just a locking version, and to keep things consistent in
_OpenConfig, we need also a non-locking one.
Signed-off-by: default avatarPetr Pudlak <pudlak@google.com>
Reviewed-by: default avatarKlaus Aehlig <aehlig@google.com>
parent 1b090fd9
......@@ -2771,14 +2771,17 @@ class ConfigWriter(object):
self._WriteConfig(feedback_fn=feedback_fn)
@_ConfigSync()
def DropECReservations(self, ec_id):
def _UnlockedDropECReservations(self, ec_id):
"""Drop per-execution-context reservations
"""
for rm in self._all_rms:
rm.DropECReservations(ec_id)
@_ConfigSync()
def DropECReservations(self, ec_id):
self._UnlockedDropECReservations(ec_id)
@_ConfigSync(shared=1)
def GetAllNetworksInfo(self):
"""Get configuration info of all the networks.
......
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