summaryrefslogtreecommitdiff
path: root/obnamlib/fmt_ga/tree.py
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2016-07-02 18:00:16 +0000
committerLars Wirzenius <liw@liw.fi>2016-07-02 18:00:16 +0000
commitd8039d3432118597555a249d22e5f75b6808792a (patch)
treeb67347c7faa09719ac2ee936d4920952e4b4cfec /obnamlib/fmt_ga/tree.py
parent586900a585cb7924349a4011e0268752305bcf2b (diff)
downloadobnam-d8039d3432118597555a249d22e5f75b6808792a.tar.gz
Drop r/o caches while forgetting to reduce memory use
Diffstat (limited to 'obnamlib/fmt_ga/tree.py')
-rw-r--r--obnamlib/fmt_ga/tree.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/obnamlib/fmt_ga/tree.py b/obnamlib/fmt_ga/tree.py
index a10a7c48..dc5cdf9b 100644
--- a/obnamlib/fmt_ga/tree.py
+++ b/obnamlib/fmt_ga/tree.py
@@ -136,6 +136,9 @@ class GATree(object):
self._blob_store.flush()
self._cache.clear()
+ def flush_ro(self): # pragma: no cover
+ self._cache.clear()
+
def _fixup_subdir_refs(self, pathname):
dir_obj = self._cache.get(pathname)
assert dir_obj is not None, 'expected %s in cache' % pathname