diff options
| author | Dan Engelbrecht <[email protected]> | 2023-05-11 11:15:16 +0200 |
|---|---|---|
| committer | GitHub <[email protected]> | 2023-05-11 11:15:16 +0200 |
| commit | 56c984f24c731ccdbecb172f6b1c671cedd66e9c (patch) | |
| tree | c0dd86be4b73c96582240649d668f08111b54b7e /src/zenstore/filecas.h | |
| parent | Close down http server gracefully when exiting even while requests are still ... (diff) | |
| download | zen-56c984f24c731ccdbecb172f6b1c671cedd66e9c.tar.xz zen-56c984f24c731ccdbecb172f6b1c671cedd66e9c.zip | |
flush file cas on exit (#291)
* flush caslog and index snapshot on flush
* fix save reading of index/logfile with cleanup
write snapshot at flush
* don't validate entries we just scanned/created
* fix total size found when scanning for cas files
* changelog
Diffstat (limited to 'src/zenstore/filecas.h')
| -rw-r--r-- | src/zenstore/filecas.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/zenstore/filecas.h b/src/zenstore/filecas.h index 420b3a634..01d3648da 100644 --- a/src/zenstore/filecas.h +++ b/src/zenstore/filecas.h @@ -46,8 +46,8 @@ struct FileCasStrategy final : public GcStorage private: void MakeIndexSnapshot(); - uint64_t ReadIndexFile(); - uint64_t ReadLog(uint64_t LogPosition); + uint64_t ReadIndexFile(const std::filesystem::path& IndexPath, uint32_t& OutVersion); + uint64_t ReadLog(const std::filesystem::path& LogPath, uint64_t LogPosition); struct IndexEntry { |