storage_service: Notify topology state machine after applying schema change

Table construction may allocate tablets which may need rebalancing.
Notify topology change coordinator to invoke the load balancer.
This commit is contained in:
Tomasz Grabiec
2023-07-06 13:52:03 +02:00
parent 6d545b2f9e
commit 1885f94474

View File

@@ -5083,6 +5083,7 @@ void storage_service::on_update_tablet_metadata() {
}
// FIXME: Avoid reading whole tablet metadata on partial changes.
load_tablet_metadata().get();
_topology_state_machine.event.signal(); // wake up load balancer.
}
future<> storage_service::load_tablet_metadata() {