diff options
| author | Dan Engelbrecht <[email protected]> | 2025-09-04 12:46:35 +0200 |
|---|---|---|
| committer | GitHub Enterprise <[email protected]> | 2025-09-04 12:46:35 +0200 |
| commit | 8d135a1e2b426ed4e44bfff26be1ecdba8bca222 (patch) | |
| tree | 33bd1423f58927d919ddc6482c0ea2cb666dbabf /src/zenstore | |
| parent | Merge pull request #485 from ue-foundation/zs/cfg-enable-overwrite-prevention (diff) | |
| download | zen-8d135a1e2b426ed4e44bfff26be1ecdba8bca222.tar.xz zen-8d135a1e2b426ed4e44bfff26be1ecdba8bca222.zip | |
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.
Diffstat (limited to 'src/zenstore')
| -rw-r--r-- | src/zenstore/gc.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
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<IoHash>& 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(); |