diff options
Diffstat (limited to 'zenserver/projectstore.cpp')
| -rw-r--r-- | zenserver/projectstore.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/zenserver/projectstore.cpp b/zenserver/projectstore.cpp index 1853941ed..e42704ccf 100644 --- a/zenserver/projectstore.cpp +++ b/zenserver/projectstore.cpp @@ -16,8 +16,8 @@ #include <zencore/timer.h> #include <zencore/trace.h> #include <zenstore/basicfile.h> -#include <zenstore/cas.h> #include <zenstore/caslog.h> +#include <zenstore/scrubcontext.h> #include "config.h" @@ -350,7 +350,7 @@ ProjectStore::Oplog::GatherReferences(GcContext& GcCtx) Hashes.push_back(Kv.second); } - GcCtx.ContributeCids(Hashes); + GcCtx.AddRetainedCids(Hashes); Hashes.clear(); @@ -359,7 +359,7 @@ ProjectStore::Oplog::GatherReferences(GcContext& GcCtx) Hashes.push_back(Kv.second); } - GcCtx.ContributeCids(Hashes); + GcCtx.AddRetainedCids(Hashes); } bool @@ -872,7 +872,7 @@ ProjectStore::Project::GatherReferences(GcContext& GcCtx) ////////////////////////////////////////////////////////////////////////// -ProjectStore::ProjectStore(CidStore& Store, std::filesystem::path BasePath, CasGc& Gc) +ProjectStore::ProjectStore(CidStore& Store, std::filesystem::path BasePath, GcManager& Gc) : GcContributor(Gc) , m_Log(zen::logging::Get("project")) , m_CidStore(Store) @@ -1482,7 +1482,7 @@ HttpProjectService::HttpProjectService(CidStore& Store, ProjectStore* Projects) { const IoHash FileHash = Entry.AsHash(); - if (!m_CidStore.FindChunkByCid(FileHash)) + if (!m_CidStore.ContainsChunk(FileHash)) { ZEN_DEBUG("prep - NEED: {}", FileHash); |