diff options
author | Lars Wirzenius <liw@liw.fi> | 2015-08-01 12:40:08 +0300 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2015-08-01 13:38:21 +0300 |
commit | 1eb41f8df54fe1ab4043f85e89153a1af9e0f186 (patch) | |
tree | ff72e7568b711df2bdc88e119ae61d2b572356a3 /obnamlib/repo_interface.py | |
parent | 510f24a45478aa1cfeb8823f64dec0f466b89d03 (diff) | |
download | obnam-1eb41f8df54fe1ab4043f85e89153a1af9e0f186.tar.gz |
Add remove_unused_chunks method
Diffstat (limited to 'obnamlib/repo_interface.py')
-rw-r--r-- | obnamlib/repo_interface.py | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/obnamlib/repo_interface.py b/obnamlib/repo_interface.py index 515c29da..4cb05d44 100644 --- a/obnamlib/repo_interface.py +++ b/obnamlib/repo_interface.py @@ -740,6 +740,15 @@ class RepositoryInterface(object): '''Write any pending new chunks to repository.''' raise NotImplementedError() + def remove_unused_chunk(self): + '''Remove chunks that are no longer used by any client. + + The caller MUST commit any changes to clients or chunk indexes + before calling this method. + + ''' + raise NotImplementedError() + def lock_chunk_indexes(self): '''Locks chunk indexes for updates.''' raise NotImplementedError() |