diff options
| author | Dan Engelbrecht <[email protected]> | 2024-11-25 13:36:53 +0100 |
|---|---|---|
| committer | GitHub Enterprise <[email protected]> | 2024-11-25 13:36:53 +0100 |
| commit | e75c5860277681be7b4a18d8d630f76c051719b4 (patch) | |
| tree | 52533fe3c0e60cfe89e08ff5a4be00b215933670 /src/zenstore/filecas.h | |
| parent | add missing projectstore expire time in gc log (#227) (diff) | |
| download | zen-e75c5860277681be7b4a18d8d630f76c051719b4.tar.xz zen-e75c5860277681be7b4a18d8d630f76c051719b4.zip | |
stronger validation of payload existance (#229)
- Don't add RawSize and Size in ProjectStore::GetProjectFiles response if we can't get the payload
- Use validation of payload size/existance in all chunk fetch operations in file cas
- In project store oplog validate, make sure we can reach all the payloads
- Add threading to oplog validate request
Diffstat (limited to 'src/zenstore/filecas.h')
| -rw-r--r-- | src/zenstore/filecas.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/zenstore/filecas.h b/src/zenstore/filecas.h index fb4b1888b..21d8c3b9e 100644 --- a/src/zenstore/filecas.h +++ b/src/zenstore/filecas.h @@ -90,8 +90,8 @@ private: inline RwLock& LockForHash(const IoHash& Hash) { return m_ShardLocks[Hash.Hash[19]]; } void IterateChunks(std::function<void(const IoHash& Hash, IoBuffer&& Payload)>&& Callback); - void IterateChunks(std::function<void(const IoHash& Hash, uint64_t PayloadSize)>&& Callback); void DeleteChunk(const IoHash& ChunkHash, std::error_code& Ec); + IoBuffer SafeOpenChunk(const IoHash& ChunkHash, uint64_t ExpectedSize); struct ShardingHelper { |