mirror of
https://github.com/scylladb/scylladb.git
synced 2026-06-05 06:23:03 +00:00
`raft_group0` was constructed at the beginning of `join_cluster`, which required passing references to 3 additional services to `join_cluster` used only for that purpose (group 0 client, raft group registry, and query processor). Now we initialize `raft_group0` in main - like all other services - and pass a reference to `join_cluster` so `storage_service` can store a pointer to group 0. We initialize `raft_group0` before we start listening for RPCs in `messaging_service`. In a later commit we'll move the initialization of group 0 related verbs to the constructor of `raft_group0` from `storage_service`, so they will be initialized before we start listening for RPCs.