diff options
| author | Dan Engelbrecht <[email protected]> | 2025-10-27 11:17:36 +0100 |
|---|---|---|
| committer | GitHub Enterprise <[email protected]> | 2025-10-27 11:17:36 +0100 |
| commit | 91e085f7caa9c384d8dab781e9b29ce0d70f6626 (patch) | |
| tree | c0ced6e0e825b5074d3012b037fc20847e22a513 /src/zenstore/gc.cpp | |
| parent | use already built lookup when verifying folder (#615) (diff) | |
| download | zen-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.cpp | 2 |
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); |