We only acquired a config lock if it was not shared in order to have lock-free reads. Hence, only release the config lock if we actually acquired it.
Signed-off-by: Klaus Aehlig <[email protected]> --- lib/config.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/config.py b/lib/config.py index 0a6f3d1..5ce682f 100644 --- a/lib/config.py +++ b/lib/config.py @@ -2929,7 +2929,7 @@ class ConfigWriter(object): except Exception, err: logging.critical("Can't write the configuration: %s", str(err)) raise - elif not self._offline: + elif not self._offline and not self._lock_current_shared: logging.debug("Unlocking configuration without writing") self._wconfd.UnlockConfig(self._GetWConfdContext()) -- 2.1.0.rc2.206.gedb03e5
