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

Store the previous shard cost so that the invariant checking performs as
expected.
pull/7555/head
eaydingol 2024-03-06 14:46:49 +03:00 committed by EmelSimsek
parent 55452c4f2e
commit 34883d6cc6
No known key found for this signature in database
GPG Key ID: EB13DFB77C32D7D8
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. */