control_plane: update shard config from location_config

This commit is contained in:
John Spray
2024-02-28 12:06:03 +00:00
parent 24b01c1652
commit 9085b0b7a2
2 changed files with 5 additions and 0 deletions

View File

@@ -1273,6 +1273,7 @@ impl Service {
}
}
shard.config = req.config.tenant_conf.clone();
shard.schedule(scheduler)?;
let maybe_waiter = shard.maybe_reconcile(

View File

@@ -615,6 +615,10 @@ impl TenantState {
return None;
};
// Advance the sequence before spawning a reconciler, so that sequence waiters
// can distinguish between before+after the reconcile completes.
self.sequence = self.sequence.next();
let reconciler_cancel = cancel.child_token();
let mut reconciler = Reconciler {
tenant_shard_id: self.tenant_shard_id,