From 14e56014b2c4edd5b10f60679aa58dea8434eaf2 Mon Sep 17 00:00:00 2001 From: Dan Engelbrecht Date: Wed, 6 Nov 2024 09:36:19 +0100 Subject: oplog capture new attachments for gc (#210) * make sure we track added attachments properly in oplogs --- src/zenserver/projectstore/httpprojectstore.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'src/zenserver/projectstore/httpprojectstore.cpp') 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 MissingChunks; CbPackage::AttachmentResolver Resolver = [&](const IoHash& Hash) -> SharedBuffer { + Oplog.CaptureAddedAttachments(std::vector{Hash}); if (m_CidStore.ContainsChunk(Hash)) { // Return null attachment as we already have it, no point in reading it and storing it again -- cgit v1.2.3