diff options
| author | Dan Engelbrecht <[email protected]> | 2025-08-28 13:19:35 +0200 |
|---|---|---|
| committer | Dan Engelbrecht <[email protected]> | 2025-08-28 13:19:35 +0200 |
| commit | d08f360e4e13df816fafbfb9ea236a02506de27c (patch) | |
| tree | 75054aa6bda2f6be783a903b35cf16a609a0cb76 /src/zenserver/vfs | |
| parent | 5.7.0 (diff) | |
| download | zen-de/reduce-project-store-memory.tar.xz zen-de/reduce-project-store-memory.zip | |
rework lifetime management for oplogde/reduce-project-store-memory
unload inactive oplogs from memory during GC
Diffstat (limited to 'src/zenserver/vfs')
| -rw-r--r-- | src/zenserver/vfs/vfsimpl.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/zenserver/vfs/vfsimpl.cpp b/src/zenserver/vfs/vfsimpl.cpp index 2bac6b756..d44222e00 100644 --- a/src/zenserver/vfs/vfsimpl.cpp +++ b/src/zenserver/vfs/vfsimpl.cpp @@ -363,12 +363,12 @@ VfsServiceDataSource::PopulateDirectory(std::string NodePath, VfsTreeNode& DirNo // Oplog contents enumeration - if (ProjectStore::Oplog* Oplog = Project->OpenOplog(OplogId, /*AllowCompact*/ false, /*VerifyPathOnDisk*/ true)) + if (Ref<ProjectStore::Oplog> Oplog = Project->OpenOplog(OplogId, /*AllowCompact*/ false, /*VerifyPathOnDisk*/ true)) { Ref<VfsOplogDataSource> DataSource = GetOplogDataSource(ProjectId, OplogId); // Get metadata for all chunks - std::vector<ProjectStore::Oplog::ChunkInfo> ChunkInfos = Oplog->GetAllChunksInfo(); + std::vector<ProjectStore::Oplog::ChunkInfo> ChunkInfos = Oplog->GetAllChunksInfo(Project->RootDir); std::unordered_map<zen::Oid, uint64_t> ChunkSizes; |