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

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