diff options
Diffstat (limited to 'src/zenstore/filecas.h')
| -rw-r--r-- | src/zenstore/filecas.h | 14 |
1 files changed, 5 insertions, 9 deletions
diff --git a/src/zenstore/filecas.h b/src/zenstore/filecas.h index c39a39bb7..cb1347580 100644 --- a/src/zenstore/filecas.h +++ b/src/zenstore/filecas.h @@ -16,10 +16,6 @@ #include <atomic> #include <functional> -namespace spdlog { -class logger; -} - namespace zen { class BasicFile; @@ -48,10 +44,10 @@ struct FileCasStrategy final : public GcStorage, public GcReferenceStore virtual GcReferencePruner* CreateReferencePruner(GcCtx& Ctx, GcReferenceStoreStats& Stats) override; private: - void MakeIndexSnapshot(); - uint64_t ReadIndexFile(const std::filesystem::path& IndexPath, uint32_t& OutVersion); - uint64_t ReadLog(const std::filesystem::path& LogPath, uint64_t LogPosition); - spdlog::logger& Log() { return m_Log; } + void MakeIndexSnapshot(); + uint64_t ReadIndexFile(const std::filesystem::path& IndexPath, uint32_t& OutVersion); + uint64_t ReadLog(const std::filesystem::path& LogPath, uint64_t LogPosition); + LoggerRef Log() { return m_Log; } struct IndexEntry { @@ -61,7 +57,7 @@ private: CasStore::InsertResult InsertChunkData(const void* ChunkData, size_t ChunkSize, const IoHash& ChunkHash); - spdlog::logger& m_Log; + LoggerRef m_Log; GcManager& m_Gc; std::filesystem::path m_RootDirectory; RwLock m_Lock; |