aboutsummaryrefslogtreecommitdiff
path: root/src/zenstore/gc.cpp
diff options
context:
space:
mode:
authorDan Engelbrecht <[email protected]>2025-10-27 11:17:36 +0100
committerGitHub Enterprise <[email protected]>2025-10-27 11:17:36 +0100
commit91e085f7caa9c384d8dab781e9b29ce0d70f6626 (patch)
treec0ced6e0e825b5074d3012b037fc20847e22a513 /src/zenstore/gc.cpp
parentuse already built lookup when verifying folder (#615) (diff)
downloadzen-91e085f7caa9c384d8dab781e9b29ce0d70f6626.tar.xz
zen-91e085f7caa9c384d8dab781e9b29ce0d70f6626.zip
optimize blockstore flush (#614)
* rework block store block flushing to only happen once at end of block write outside of locks * fix warning at startup if no gc.dlog file exists
Diffstat (limited to 'src/zenstore/gc.cpp')
-rw-r--r--src/zenstore/gc.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/zenstore/gc.cpp b/src/zenstore/gc.cpp
index c05cb5269..e58bbb6e2 100644
--- a/src/zenstore/gc.cpp
+++ b/src/zenstore/gc.cpp
@@ -1782,7 +1782,7 @@ GcScheduler::Initialize(const GcSchedulerConfig& Config)
}
const std::filesystem::path GcDiskUsageLogPath = m_Config.RootDirectory / "gc.dlog";
- if (!TCasLogFile<DiskUsageWindow::DiskUsageEntry>::IsValid(GcDiskUsageLogPath))
+ if (IsFile(GcDiskUsageLogPath) && !TCasLogFile<DiskUsageWindow::DiskUsageEntry>::IsValid(GcDiskUsageLogPath))
{
ZEN_WARN("GC disk usage log at '{}' is malformed, restarting log", GcDiskUsageLogPath);
RemoveFile(GcDiskUsageLogPath);