aboutsummaryrefslogtreecommitdiff
path: root/zen/chunk/chunk.cpp
diff options
context:
space:
mode:
authorStefan Boberg <[email protected]>2021-10-21 18:03:41 +0200
committerStefan Boberg <[email protected]>2021-10-21 18:03:41 +0200
commit3e824897aed32282ec9ee297e1cfc3efc5a8d251 (patch)
tree199d71e7314ecf7df577b4466f0d599b86c4dd08 /zen/chunk/chunk.cpp
parentAdded IsReady flag to ZenServerEntry (diff)
downloadarchived-zen-3e824897aed32282ec9ee297e1cfc3efc5a8d251.tar.xz
archived-zen-3e824897aed32282ec9ee297e1cfc3efc5a8d251.zip
gc: Added GcStorage base class and hooked it up to CasGc
Diffstat (limited to 'zen/chunk/chunk.cpp')
-rw-r--r--zen/chunk/chunk.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/zen/chunk/chunk.cpp b/zen/chunk/chunk.cpp
index 3283a8b66..043832dd3 100644
--- a/zen/chunk/chunk.cpp
+++ b/zen/chunk/chunk.cpp
@@ -15,6 +15,7 @@
#include <zencore/thread.h>
#include <zencore/timer.h>
#include <zenstore/cas.h>
+#include <zenstore/gc.h>
#include "../internalfile.h"
@@ -942,12 +943,14 @@ ChunkCommand::Run(const ZenCliOptions& GlobalOptions, int argc, char** argv)
std::unique_ptr<zen::CasStore> CasStore;
+ zen::CasGc Gc;
+
if (!m_RootDirectory.empty())
{
zen::CasStoreConfiguration Config;
Config.RootDirectory = m_RootDirectory;
- CasStore.reset(zen::CreateCasStore());
+ CasStore.reset(zen::CreateCasStore(Gc));
CasStore->Initialize(Config);
}