diff options
| author | Dan Engelbrecht <[email protected]> | 2025-08-07 10:12:10 +0200 |
|---|---|---|
| committer | GitHub Enterprise <[email protected]> | 2025-08-07 10:12:10 +0200 |
| commit | 03b9ea9736867c71b6d7e8ddc89b84117422be12 (patch) | |
| tree | 1342b5dd8ee077156d6552c0953810559a0ea608 | |
| parent | Merge pull request #450 from ue-foundation/lm/double-quotes-fix (diff) | |
| download | zen-03b9ea9736867c71b6d7e8ddc89b84117422be12.tar.xz zen-03b9ea9736867c71b6d7e8ddc89b84117422be12.zip | |
skip query for metada if no blocks are referenced (#460)
| -rw-r--r-- | CHANGELOG.md | 1 | ||||
| -rw-r--r-- | src/zen/cmds/builds_cmd.cpp | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/CHANGELOG.md b/CHANGELOG.md index 6cafaf839..9a0f767e4 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -10,6 +10,7 @@ - Improvement: If cloud-ddc requests upload of a blob it earlier reported as good to reuse we treat it as a transient error and attempt to retry - Bugfix: Parents were not notified when successfully attaching to an existing server instance - Bugfix: BuildStorage cache return "true" for metadata existance for all blobs that had payloads regardless of actual existance for metadata +- Bugfix: Builds download - don't query for block metadata if no blocks are required - Bugfix: Add the referenced attachments correctly when storing inline cache bucket records using batch mode ## 5.6.14 diff --git a/src/zen/cmds/builds_cmd.cpp b/src/zen/cmds/builds_cmd.cpp index fc3580d75..7cb12cd4c 100644 --- a/src/zen/cmds/builds_cmd.cpp +++ b/src/zen/cmds/builds_cmd.cpp @@ -8658,7 +8658,7 @@ namespace { std::vector<ChunkBlockDescription> UnorderedList; tsl::robin_map<IoHash, size_t, IoHash::Hasher> BlockDescriptionLookup; - if (Storage.BuildCacheStorage) + if (Storage.BuildCacheStorage && !BlockRawHashes.empty()) { std::vector<CbObject> CacheBlockMetadatas = Storage.BuildCacheStorage->GetBlobMetadatas(BuildId, BlockRawHashes); UnorderedList.reserve(CacheBlockMetadatas.size()); |