aboutsummaryrefslogtreecommitdiff
path: root/src/zenstore/include
diff options
context:
space:
mode:
Diffstat (limited to 'src/zenstore/include')
-rw-r--r--src/zenstore/include/zenstore/gc.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/zenstore/include/zenstore/gc.h b/src/zenstore/include/zenstore/gc.h
index 30dd97ce8..b7613883a 100644
--- a/src/zenstore/include/zenstore/gc.h
+++ b/src/zenstore/include/zenstore/gc.h
@@ -173,6 +173,8 @@ public:
// Destructor should unlock what was locked in LockState
virtual ~GcReferenceChecker() = default;
+ virtual std::string GetGcName(GcCtx& Ctx) = 0;
+
virtual void PreCache(GcCtx& Ctx) = 0;
// Lock the state and make sure no references changes, usually a read-lock is taken until the destruction
@@ -215,6 +217,8 @@ class GcReferencePruner
public:
virtual ~GcReferencePruner() = default;
+ virtual std::string GetGcName(GcCtx& Ctx) = 0;
+
typedef std::function<std::vector<IoHash>(std::span<IoHash> References)> GetUnusedReferencesFunc;
// Check a set of references to see if they are in use.