aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Boberg <[email protected]>2021-10-18 19:39:15 +0200
committerStefan Boberg <[email protected]>2021-10-18 19:39:15 +0200
commitc6b0fa23f7161fbe5faedc03b5397a3e37f25e46 (patch)
treeed596db41aeda9d393ab791199db2f91cda87b1c
parentminor: comment edits (diff)
downloadzen-c6b0fa23f7161fbe5faedc03b5397a3e37f25e46.tar.xz
zen-c6b0fa23f7161fbe5faedc03b5397a3e37f25e46.zip
Some gc interface stubs
-rw-r--r--zenstore/gc.cpp14
-rw-r--r--zenstore/include/zenstore/gc.h6
2 files changed, 17 insertions, 3 deletions
diff --git a/zenstore/gc.cpp b/zenstore/gc.cpp
index e7c8f3a1a..f7e448887 100644
--- a/zenstore/gc.cpp
+++ b/zenstore/gc.cpp
@@ -49,7 +49,19 @@ CasGc::CollectGarbage()
}
void
-CasGc::OnNewReferences(std::span<IoHash> Hashes)
+CasGc::OnNewCidReferences(std::span<IoHash> Hashes)
+{
+ ZEN_UNUSED(Hashes);
+}
+
+void
+CasGc::OnCommittedCidReferences(std::span<IoHash> Hashes)
+{
+ ZEN_UNUSED(Hashes);
+}
+
+void
+CasGc::OnDroppedCidReferences(std::span<IoHash> Hashes)
{
ZEN_UNUSED(Hashes);
}
diff --git a/zenstore/include/zenstore/gc.h b/zenstore/include/zenstore/gc.h
index 33a43f4d2..126c2eb68 100644
--- a/zenstore/include/zenstore/gc.h
+++ b/zenstore/include/zenstore/gc.h
@@ -29,7 +29,7 @@ private:
std::unique_ptr<GcState> m_State;
};
-/** GC
+/** GC Coordinator
*/
class CasGc
@@ -40,7 +40,9 @@ public:
void CollectGarbage();
- void OnNewReferences(std::span<IoHash> Hashes);
+ void OnNewCidReferences(std::span<IoHash> Hashes);
+ void OnCommittedCidReferences(std::span<IoHash> Hashes);
+ void OnDroppedCidReferences(std::span<IoHash> Hashes);
private:
CasStore& m_CasStore;