service/raft: group0_state_machine: signal topology state machine in load_snapshot

The `_topology_state_machine.event` condition variable should be
signalled whenever the topology state is updated, including on snapshot
load.
This commit is contained in:
Kamil Braun
2023-03-30 15:55:51 +02:00
parent 6ca1b14488
commit 52366f33e5

View File

@@ -128,6 +128,7 @@ future<> group0_state_machine::load_snapshot(raft::snapshot_id id) {
// memory and thus needs to be protected with apply mutex
auto read_apply_mutex_holder = co_await get_units(_client._read_apply_mutex, 1);
co_await _ss.topology_state_load();
_ss._topology_state_machine.event.signal();
}
future<> group0_state_machine::transfer_snapshot(gms::inet_address from, raft::snapshot_descriptor snp) {