From 8d135a1e2b426ed4e44bfff26be1ecdba8bca222 Mon Sep 17 00:00:00 2001 From: Dan Engelbrecht Date: Thu, 4 Sep 2025 12:46:35 +0200 Subject: oplog memory usage reduction (#482) - Improvement: For projectstore oplog GET operation, only read basic information and release it if the oplog is not already open to reduce memory usage when listing oplogs in web UI - Improvement: Reduce memory usage for oplog Op address lookup Refactored Oplog::EState -> Oplog ::EMode and make sure we open data files in read-only mode when EMode::kBasicReadOnly is used. --- src/zenstore/gc.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/zenstore/gc.cpp') diff --git a/src/zenstore/gc.cpp b/src/zenstore/gc.cpp index a7ef401d5..5023695b2 100644 --- a/src/zenstore/gc.cpp +++ b/src/zenstore/gc.cpp @@ -543,6 +543,8 @@ FilterReferences(GcCtx& Ctx, std::string_view Context, std::vector& InOu return false; } + auto Log = [&Ctx]() { return Ctx.Logger; }; + const bool Filter = Ctx.Settings.AttachmentRangeMax != IoHash::Max || Ctx.Settings.AttachmentRangeMin != IoHash::Zero; size_t TotalCount = InOutReferences.size(); -- cgit v1.2.3