aboutsummaryrefslogtreecommitdiffstats
path: root/storage
diff options
context:
space:
mode:
Diffstat (limited to 'storage')
-rw-r--r--storage/src/vespa/storage/distributor/cancelled_replicas_pruner.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/storage/src/vespa/storage/distributor/cancelled_replicas_pruner.cpp b/storage/src/vespa/storage/distributor/cancelled_replicas_pruner.cpp
index 5e1bc402fc4..f453a722d2c 100644
--- a/storage/src/vespa/storage/distributor/cancelled_replicas_pruner.cpp
+++ b/storage/src/vespa/storage/distributor/cancelled_replicas_pruner.cpp
@@ -4,6 +4,9 @@
namespace storage::distributor {
std::vector<BucketCopy> prune_cancelled_nodes(std::span<const BucketCopy> replicas, const CancelScope& cancel_scope) {
+ if (cancel_scope.fully_cancelled()) {
+ return {};
+ }
std::vector<BucketCopy> pruned_replicas;
// Expect that there will be an input entry for each cancelled node in the common case.
pruned_replicas.reserve((replicas.size() >= cancel_scope.cancelled_nodes().size())