aboutsummaryrefslogtreecommitdiff
path: root/src/zenstore/compactcas.h
diff options
context:
space:
mode:
authorDan Engelbrecht <[email protected]>2025-05-09 13:57:25 +0200
committerGitHub Enterprise <[email protected]>2025-05-09 13:57:25 +0200
commita535a19aae3e4c9573a16099ec19866f7d4b7bc1 (patch)
tree3452d6276a632c2044efa79192fc9fa2cc5d9ba1 /src/zenstore/compactcas.h
parentMerge pull request #386 from ue-foundation/zs/plugin-config-hardening (diff)
downloadzen-a535a19aae3e4c9573a16099ec19866f7d4b7bc1.tar.xz
zen-a535a19aae3e4c9573a16099ec19866f7d4b7bc1.zip
flush cas log file (#387)
* make sure we remove the cas log file when writing full index at startup
Diffstat (limited to 'src/zenstore/compactcas.h')
-rw-r--r--src/zenstore/compactcas.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/zenstore/compactcas.h b/src/zenstore/compactcas.h
index 2eb4c233a..b7ea7591e 100644
--- a/src/zenstore/compactcas.h
+++ b/src/zenstore/compactcas.h
@@ -77,7 +77,7 @@ struct CasContainerStrategy final : public GcStorage, public GcReferenceStore
private:
CasStore::InsertResult InsertChunk(const void* ChunkData, size_t ChunkSize, const IoHash& ChunkHash);
- void MakeIndexSnapshot();
+ void MakeIndexSnapshot(bool FlushLockPosition);
uint64_t ReadIndexFile(const std::filesystem::path& IndexPath, uint32_t& OutVersion);
uint64_t ReadLog(const std::filesystem::path& LogPath, uint64_t SkipEntryCount);
void OpenContainer(bool IsNewStore);