aboutsummaryrefslogtreecommitdiff
path: root/src/zenserver/projectstore/httpprojectstore.cpp
diff options
context:
space:
mode:
authorDan Engelbrecht <[email protected]>2024-11-06 09:36:19 +0100
committerGitHub Enterprise <[email protected]>2024-11-06 09:36:19 +0100
commit14e56014b2c4edd5b10f60679aa58dea8434eaf2 (patch)
treefca95acdbceaedcfc3ccdaa2c9b947e0abf468ae /src/zenserver/projectstore/httpprojectstore.cpp
parentproject details cmd resolve prj oplog (#209) (diff)
downloadzen-14e56014b2c4edd5b10f60679aa58dea8434eaf2.tar.xz
zen-14e56014b2c4edd5b10f60679aa58dea8434eaf2.zip
oplog capture new attachments for gc (#210)
* make sure we track added attachments properly in oplogs
Diffstat (limited to 'src/zenserver/projectstore/httpprojectstore.cpp')
-rw-r--r--src/zenserver/projectstore/httpprojectstore.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/zenserver/projectstore/httpprojectstore.cpp b/src/zenserver/projectstore/httpprojectstore.cpp
index 8dbd94d39..1b45e66f3 100644
--- a/src/zenserver/projectstore/httpprojectstore.cpp
+++ b/src/zenserver/projectstore/httpprojectstore.cpp
@@ -1045,6 +1045,7 @@ HttpProjectService::HandleOplogOpNewRequest(HttpRouterRequest& Req)
std::vector<IoHash> MissingChunks;
CbPackage::AttachmentResolver Resolver = [&](const IoHash& Hash) -> SharedBuffer {
+ Oplog.CaptureAddedAttachments(std::vector<IoHash>{Hash});
if (m_CidStore.ContainsChunk(Hash))
{
// Return null attachment as we already have it, no point in reading it and storing it again