pub fn handle_join_request(
req: &JoinRequest,
topology: &mut ClusterTopology,
routing: &RoutingTable,
cluster_id: u64,
) -> JoinResponseExpand description
Build a JoinResponse for an incoming JoinRequest.
See module docs for semantics. Mutates topology only when the node is
newly admitted; idempotent for re-joins with the same address.
cluster_id is the id of the cluster this node belongs to — the
join flow reads it from the local catalog and threads it through so
the joining node can persist it and take the restart() path on a
subsequent boot. Zero is a valid placeholder when the server’s
catalog has not yet been populated; rejection responses also carry
zero.