summaryrefslogtreecommitdiff
path: root/obnamlib/fmt_ga/client.py
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2016-06-24 17:41:44 +0000
committerLars Wirzenius <liw@liw.fi>2016-06-25 16:05:41 +0000
commit79c4579c78caff17d31d46776d512dae3f879d3b (patch)
treeb3b8120154cb0d0893e27afb1b2b2553a30a2062 /obnamlib/fmt_ga/client.py
parent0dc3b5ce8ce8efb3bc1472af9fdebfed081aca5e (diff)
downloadobnam-79c4579c78caff17d31d46776d512dae3f879d3b.tar.gz
Add flush_client method and fix RepositoryClientNotLocked instance
This may be used to force any in-memory caches for an open client in a repository to be written out, and then dropped, to reduct memory use. Only green-albatross implements this, for now.
Diffstat (limited to 'obnamlib/fmt_ga/client.py')
-rw-r--r--obnamlib/fmt_ga/client.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/obnamlib/fmt_ga/client.py b/obnamlib/fmt_ga/client.py
index d29c85a6..85417d04 100644
--- a/obnamlib/fmt_ga/client.py
+++ b/obnamlib/fmt_ga/client.py
@@ -74,6 +74,9 @@ class GAClient(object):
def get_dirname(self):
return self._dirname
+ def flush(self):
+ self._save_file_metadata()
+
def commit(self):
self._load_data()
self._finish_current_generation_if_any()