aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDan Engelbrecht <[email protected]>2025-08-07 10:12:10 +0200
committerGitHub Enterprise <[email protected]>2025-08-07 10:12:10 +0200
commit03b9ea9736867c71b6d7e8ddc89b84117422be12 (patch)
tree1342b5dd8ee077156d6552c0953810559a0ea608
parentMerge pull request #450 from ue-foundation/lm/double-quotes-fix (diff)
downloadzen-03b9ea9736867c71b6d7e8ddc89b84117422be12.tar.xz
zen-03b9ea9736867c71b6d7e8ddc89b84117422be12.zip
skip query for metada if no blocks are referenced (#460)
-rw-r--r--CHANGELOG.md1
-rw-r--r--src/zen/cmds/builds_cmd.cpp2
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());