summaryrefslogtreecommitdiff
path: root/obnamlib/repo_interface.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/repo_interface.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/repo_interface.py')
-rw-r--r--obnamlib/repo_interface.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/obnamlib/repo_interface.py b/obnamlib/repo_interface.py
index b3744de5..f948c68e 100644
--- a/obnamlib/repo_interface.py
+++ b/obnamlib/repo_interface.py
@@ -543,6 +543,14 @@ class RepositoryInterface(object):
'''
raise NotImplementedError()
+ def flush_client(self, client_name):
+ '''Flush cached data from client. This is not a commit.
+
+ This is a NOP, unless the a specific repository format gives
+ it meaning.
+
+ '''
+
def commit_client(self, client_name):
'''Commit changes to client and DO NOT unlock it.