aboutsummaryrefslogtreecommitdiff
path: root/zenstore/include
diff options
context:
space:
mode:
authorStefan Boberg <[email protected]>2021-11-01 19:03:42 +0100
committerStefan Boberg <[email protected]>2021-11-01 19:03:54 +0100
commitf3bd5be8beeae2bbc5a0c0612407ce8e72a9b8cf (patch)
tree368ce9f28b80900a8e424a697d3b9ee8a46b76f3 /zenstore/include
parentproject: fixed logging of new oplog entries (again) to be easier to scan (diff)
downloadzen-f3bd5be8beeae2bbc5a0c0612407ce8e72a9b8cf.tar.xz
zen-f3bd5be8beeae2bbc5a0c0612407ce8e72a9b8cf.zip
gc: added DeletionMode flag to allow gc dry runs
Diffstat (limited to 'zenstore/include')
-rw-r--r--zenstore/include/zenstore/gc.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/zenstore/include/zenstore/gc.h b/zenstore/include/zenstore/gc.h
index d3092d91c..46b588570 100644
--- a/zenstore/include/zenstore/gc.h
+++ b/zenstore/include/zenstore/gc.h
@@ -30,6 +30,9 @@ public:
void FilterCids(std::span<const IoHash> Cid, std::function<void(const IoHash&)> KeepFunc);
void FilterCas(std::span<const IoHash> Cas, std::function<void(const IoHash&)> KeepFunc);
+ bool IsDeletionMode() const;
+ void SetDeletionMode(bool NewState);
+
private:
struct GcState;