diff options
author | Lars Wirzenius <liw@liw.fi> | 2016-08-13 18:06:26 +0300 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2016-08-14 10:13:13 +0300 |
commit | 022aa0cba1102fa234c8b5d9f4fa9e3fbc108cc0 (patch) | |
tree | 13fa85476f92a37fba12dafce6650fd9fef5c514 /obnamlib/fmt_ga/leaf_store.py | |
parent | b88b51305f7b96077e5ee0517248dc45029c9d4f (diff) | |
download | obnam-022aa0cba1102fa234c8b5d9f4fa9e3fbc108cc0.tar.gz |
Break CowTree into many nodes
Diffstat (limited to 'obnamlib/fmt_ga/leaf_store.py')
-rw-r--r-- | obnamlib/fmt_ga/leaf_store.py | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/obnamlib/fmt_ga/leaf_store.py b/obnamlib/fmt_ga/leaf_store.py index b5cb5120..5d488e96 100644 --- a/obnamlib/fmt_ga/leaf_store.py +++ b/obnamlib/fmt_ga/leaf_store.py @@ -27,6 +27,9 @@ class LeafStoreInterface(object): # pragma: no cover def get_leaf(self, leaf_id): raise NotImplementedError() + def flush(self): + raise NotImplementedError() + class InMemoryLeafStore(LeafStoreInterface): @@ -42,6 +45,9 @@ class InMemoryLeafStore(LeafStoreInterface): def get_leaf(self, leaf_id): return self._leaves.get(leaf_id, None) + def flush(self): + pass + class LeafStore(LeafStoreInterface): # pragma: no cover @@ -58,3 +64,6 @@ class LeafStore(LeafStoreInterface): # pragma: no cover leaf = obnamlib.CowLeaf() leaf.from_dict(self._blob_store.get_blob(leaf_id)) return leaf + + def flush(self): + self._blob_store.flush() |