Fix: store the previous shard cost for order verification (#7550)

Store the previous shard cost so that the invariant checking performs as
expected.
pull/7841/head
eaydingol 2024-03-06 14:46:49 +03:00 committed by naisila
parent 657575114c
commit e2a03ce6a0
1 changed files with 1 additions and 0 deletions

View File

@ -384,6 +384,7 @@ CheckRebalanceStateInvariants(const RebalanceState *state)
Assert(shardCost->cost <= prevShardCost->cost);
}
totalCost += shardCost->cost;
prevShardCost = shardCost;
}
/* Check that utilization field is up to date. */