diff options
Diffstat (limited to 'src/zenstore/compactcas.h')
| -rw-r--r-- | src/zenstore/compactcas.h | 21 |
1 files changed, 11 insertions, 10 deletions
diff --git a/src/zenstore/compactcas.h b/src/zenstore/compactcas.h index 932844da7..eb1d36b31 100644 --- a/src/zenstore/compactcas.h +++ b/src/zenstore/compactcas.h @@ -51,16 +51,17 @@ struct CasContainerStrategy final : public GcStorage, public GcReferenceStore CasContainerStrategy(GcManager& Gc); ~CasContainerStrategy(); - CasStore::InsertResult InsertChunk(IoBuffer Chunk, const IoHash& ChunkHash); - IoBuffer FindChunk(const IoHash& ChunkHash); - bool HaveChunk(const IoHash& ChunkHash); - void FilterChunks(HashKeySet& InOutChunks); - void Initialize(const std::filesystem::path& RootDirectory, - const std::string_view ContainerBaseName, - uint32_t MaxBlockSize, - uint32_t Alignment, - bool IsNewStore); - void Flush(); + CasStore::InsertResult InsertChunk(IoBuffer Chunk, const IoHash& ChunkHash); + std::vector<CasStore::InsertResult> InsertChunks(std::span<IoBuffer> Chunks, std::span<IoHash> ChunkHashes); + IoBuffer FindChunk(const IoHash& ChunkHash); + bool HaveChunk(const IoHash& ChunkHash); + void FilterChunks(HashKeySet& InOutChunks); + void Initialize(const std::filesystem::path& RootDirectory, + const std::string_view ContainerBaseName, + uint32_t MaxBlockSize, + uint32_t Alignment, + bool IsNewStore); + void Flush(); // GcStorage |