diff options
| author | Dan Engelbrecht <[email protected]> | 2025-05-12 11:03:46 +0200 |
|---|---|---|
| committer | GitHub Enterprise <[email protected]> | 2025-05-12 11:03:46 +0200 |
| commit | a417d19e6d2af229e7fd33c559f6fefee3a81042 (patch) | |
| tree | 48d23f4c4700be6cbaa820d9ac798ddea70218cd /src/zenstore/compactcas.h | |
| parent | enable per bucket config (#388) (diff) | |
| download | zen-a417d19e6d2af229e7fd33c559f6fefee3a81042.tar.xz zen-a417d19e6d2af229e7fd33c559f6fefee3a81042.zip | |
keep snapshot on log delete fail (#391)
- Improvement: Cleaned up snapshot writing for CompactCAS/FileCas/Cache/Project stores
- Improvement: Safer recovery when failing to delete log for CompactCAS/FileCas/Cache/Project stores
- Improvement: Added log file reset when writing snapshot at startup for FileCas
Diffstat (limited to 'src/zenstore/compactcas.h')
| -rw-r--r-- | src/zenstore/compactcas.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/zenstore/compactcas.h b/src/zenstore/compactcas.h index b7ea7591e..15e4cbf81 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(bool FlushLockPosition); + void MakeIndexSnapshot(bool ResetLog); 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); |