This is an automated email from the ASF dual-hosted git repository.

akitouni pushed a commit to branch abderrahim/cache-query
in repository https://gitbox.apache.org/repos/asf/buildstream.git

commit 830b3b90ff6b09856d0c29d95f5fc9f8855c4dde
Author: Abderrahim Kitouni <[email protected]>
AuthorDate: Fri Dec 10 22:48:24 2021 +0100

    cascache.py: remove _cache_usage_monitor_forbidden
    
    This is a relic from the job pickling era
---
 src/buildstream/_cas/cascache.py | 2 --
 1 file changed, 2 deletions(-)

diff --git a/src/buildstream/_cas/cascache.py b/src/buildstream/_cas/cascache.py
index 42419d091..2dd02cc46 100644
--- a/src/buildstream/_cas/cascache.py
+++ b/src/buildstream/_cas/cascache.py
@@ -79,7 +79,6 @@ class CASCache:
         os.makedirs(self.tmpdir, exist_ok=True)
 
         self._cache_usage_monitor = None
-        self._cache_usage_monitor_forbidden = False
 
         self._remote_cache = bool(remote_cache_spec)
 
@@ -733,7 +732,6 @@ class CASCache:
     #     (CASCacheUsage): The current status
     #
     def get_cache_usage(self):
-        assert not self._cache_usage_monitor_forbidden
         return self._cache_usage_monitor.get_cache_usage()
 
     # get_casd_process_manager()

Reply via email to