diff options
| author | Dan Engelbrecht <[email protected]> | 2025-10-24 11:58:09 +0200 |
|---|---|---|
| committer | GitHub Enterprise <[email protected]> | 2025-10-24 11:58:09 +0200 |
| commit | b8fc9040370d6faf119eea3d43f49d6470ea3498 (patch) | |
| tree | 657b534e25747933e2023d58abf1868bfc32b656 /src/zenstore/compactcas.h | |
| parent | in-tree spdlog (#602) (diff) | |
| download | zen-b8fc9040370d6faf119eea3d43f49d6470ea3498.tar.xz zen-b8fc9040370d6faf119eea3d43f49d6470ea3498.zip | |
refactor CasContainerStrategy::IterateOneBlock to make it more readable (#607)
Diffstat (limited to 'src/zenstore/compactcas.h')
| -rw-r--r-- | src/zenstore/compactcas.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/zenstore/compactcas.h b/src/zenstore/compactcas.h index 32c256a42..1c8165b91 100644 --- a/src/zenstore/compactcas.h +++ b/src/zenstore/compactcas.h @@ -82,6 +82,12 @@ private: uint64_t ReadLog(const std::filesystem::path& LogPath, uint64_t SkipEntryCount); void OpenContainer(bool IsNewStore); void CompactIndex(RwLock::ExclusiveLockScope&); + bool IterateOneBlock(const std::function<bool(size_t Index, const IoBuffer& Payload)>& AsyncCallback, + uint64_t LargeSizeLimit, + std::span<const IoHash> ChunkHashes, + std::span<const size_t> FoundChunkIndexes, + std::span<const BlockStoreLocation> FoundChunkLocations, + std::span<const size_t> ChunkIndexes); LoggerRef Log() { return m_Log; } |