diff options
Diffstat (limited to 'zenstore')
| -rw-r--r-- | zenstore/filecas.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/zenstore/filecas.h b/zenstore/filecas.h index 51e5fbc98..db21502c6 100644 --- a/zenstore/filecas.h +++ b/zenstore/filecas.h @@ -44,15 +44,15 @@ private: spdlog::logger& m_Log; spdlog::logger& Log() { return m_Log; } - inline RwLock& LockForHash(const IoHash& Hash) { return m_ShardLocks[Hash.Hash[19]]; } - void IterateChunks(std::function<void(const IoHash& Hash, BasicFile& PayloadFile)>&& Callback); - void DeleteChunk(const IoHash& ChunkHash, std::error_code& Ec); + inline RwLock& LockForHash(const IoHash& Hash) { return m_ShardLocks[Hash.Hash[19]]; } + void IterateChunks(std::function<void(const IoHash& Hash, BasicFile& PayloadFile)>&& Callback); + void DeleteChunk(const IoHash& ChunkHash, std::error_code& Ec); struct ShardingHelper { ShardingHelper(const std::filesystem::path& RootPath, const IoHash& ChunkHash); - size_t Shard2len = 0; + size_t Shard2len = 0; ExtendableWideStringBuilder<128> ShardedPath; }; }; |