aboutsummaryrefslogtreecommitdiff
path: root/src/zenstore/compactcas.h
diff options
context:
space:
mode:
authorDan Engelbrecht <[email protected]>2023-05-10 17:12:51 +0200
committerGitHub <[email protected]>2023-05-10 17:12:51 +0200
commit98ca5f6bebaed548026ddf218ea37414262ce8c6 (patch)
tree156acc6a38c366f9b9e9d73127b5a23ea5b8fce8 /src/zenstore/compactcas.h
parentmake sure we create gc root directory before checking disk space (diff)
downloadzen-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.h4
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; }