diff options
| author | Stefan Boberg <[email protected]> | 2021-09-23 12:39:22 +0200 |
|---|---|---|
| committer | Stefan Boberg <[email protected]> | 2021-09-23 12:39:22 +0200 |
| commit | 6475458866463133aae760e938b27d98b6ead3d3 (patch) | |
| tree | 5b69ca464a18e996b3c060dcaa6e1ae5ac8e2090 /zenstore | |
| parent | cidstore: made all updates log using LogMapping() (diff) | |
| parent | Use /check/health instead of /test/hello. (diff) | |
| download | zen-6475458866463133aae760e938b27d98b6ead3d3.tar.xz zen-6475458866463133aae760e938b27d98b6ead3d3.zip | |
Merge branch 'main' of https://github.com/EpicGames/zen
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; }; }; |