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/7552/head
parent
d59c93bc50
commit
edcdbe67b1
|
@ -384,6 +384,7 @@ CheckRebalanceStateInvariants(const RebalanceState *state)
|
||||||
Assert(shardCost->cost <= prevShardCost->cost);
|
Assert(shardCost->cost <= prevShardCost->cost);
|
||||||
}
|
}
|
||||||
totalCost += shardCost->cost;
|
totalCost += shardCost->cost;
|
||||||
|
prevShardCost = shardCost;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Check that utilization field is up to date. */
|
/* Check that utilization field is up to date. */
|
||||||
|
|
Loading…
Reference in New Issue