diff options
| author | Dan Engelbrecht <[email protected]> | 2023-05-10 17:12:51 +0200 |
|---|---|---|
| committer | GitHub <[email protected]> | 2023-05-10 17:12:51 +0200 |
| commit | 98ca5f6bebaed548026ddf218ea37414262ce8c6 (patch) | |
| tree | 156acc6a38c366f9b9e9d73127b5a23ea5b8fce8 /src/zenstore/compactcas.h | |
| parent | make sure we create gc root directory before checking disk space (diff) | |
| download | zen-98ca5f6bebaed548026ddf218ea37414262ce8c6.tar.xz zen-98ca5f6bebaed548026ddf218ea37414262ce8c6.zip | |
clean up log/index reading and fix incorrect logging about bad log files (#286)
Diffstat (limited to 'src/zenstore/compactcas.h')
| -rw-r--r-- | src/zenstore/compactcas.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/zenstore/compactcas.h b/src/zenstore/compactcas.h index b0c6699eb..a043e62c1 100644 --- a/src/zenstore/compactcas.h +++ b/src/zenstore/compactcas.h @@ -68,8 +68,8 @@ struct CasContainerStrategy final : public GcStorage private: CasStore::InsertResult InsertChunk(const void* ChunkData, size_t ChunkSize, const IoHash& ChunkHash); void MakeIndexSnapshot(); - uint64_t ReadIndexFile(); - uint64_t ReadLog(uint64_t SkipEntryCount); + 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); spdlog::logger& Log() { return m_Log; } |