mirror of https://github.com/citusdata/citus.git
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
parent
657575114c
commit
e2a03ce6a0
|
@ -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. */
|
||||
|
|
Loading…
Reference in New Issue