diff options
| author | Dan Engelbrecht <[email protected]> | 2024-04-24 13:25:32 +0200 |
|---|---|---|
| committer | GitHub Enterprise <[email protected]> | 2024-04-24 13:25:32 +0200 |
| commit | 8be0f10d5fb575f343d91a2398a6d603eb84a445 (patch) | |
| tree | bea4650f6e83a26069a558a8d3701c0764a3b38f /src/zenstore/filecas.cpp | |
| parent | bump vcpkg and xmake to latest (#40) (diff) | |
| download | zen-8be0f10d5fb575f343d91a2398a6d603eb84a445.tar.xz zen-8be0f10d5fb575f343d91a2398a6d603eb84a445.zip | |
safer gcv2 on error (#60)
- Bugfix: Harden GCv2 when errors occur and gracefully abort GC operation on error
Diffstat (limited to 'src/zenstore/filecas.cpp')
| -rw-r--r-- | src/zenstore/filecas.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/zenstore/filecas.cpp b/src/zenstore/filecas.cpp index 0f3e2ab5a..7fbc2b9ad 100644 --- a/src/zenstore/filecas.cpp +++ b/src/zenstore/filecas.cpp @@ -1437,7 +1437,7 @@ public: m_ReferencesToClean.shrink_to_fit(); } - virtual void CompactStore(GcCtx& Ctx, GcCompactStoreStats& Stats, const std::function<uint64_t()>&) + virtual void CompactStore(GcCtx& Ctx, GcCompactStoreStats& Stats, const std::function<uint64_t()>&) override { ZEN_TRACE_CPU("FileCas::CompactStore"); @@ -1539,6 +1539,8 @@ public: Reset(m_ReferencesToClean); } + virtual std::string GetGcName(GcCtx& Ctx) override { return m_FileCasStrategy.GetGcName(Ctx); } + private: FileCasStrategy& m_FileCasStrategy; std::vector<IoHash> m_ReferencesToClean; |