From 693c07b865bfcc9df978fda8a029beaf72ec29c6 Mon Sep 17 00:00:00 2001 From: Adam Rutkowski Date: Tue, 29 Sep 2020 17:58:01 +0200 Subject: [PATCH] pyocf: fix cache save method Signed-off-by: Adam Rutkowski --- tests/functional/pyocf/types/cache.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/functional/pyocf/types/cache.py b/tests/functional/pyocf/types/cache.py index a040f7e..d067c0f 100644 --- a/tests/functional/pyocf/types/cache.py +++ b/tests/functional/pyocf/types/cache.py @@ -522,12 +522,12 @@ class Cache: if not self.started: raise Exception("Not started!") - self.get_and_write_lock() + self.write_lock() c = OcfCompletion([("cache", c_void_p), ("priv", c_void_p), ("error", c_int)]) self.owner.lib.ocf_mngt_cache_save(self.cache_handle, c, None) c.wait() - self.put_and_write_unlock() + self.write_unlock() if c.results["error"]: raise OcfError("Failed saving cache", c.results["error"])