@@ -96,7 +96,6 @@ join(RemoteNode, NodeType)
9696 % % database because we might change it during the join.
9797 RestartMnesia = rabbit_mnesia :is_running (),
9898 RestartFFCtl = rabbit_ff_controller :is_running (),
99- RestartRaSystems = rabbit_ra_systems :are_running (),
10099 RestartRabbit = rabbit :is_running (),
101100 case RestartRabbit of
102101 true ->
@@ -107,10 +106,7 @@ join(RemoteNode, NodeType)
107106 % % Therefore, there are files in the data directory. They
108107 % % will go away with the reset and we will need to restart
109108 % % Ra systems afterwards.
110- case RestartRaSystems of
111- true -> ok = rabbit_ra_systems :ensure_stopped ();
112- false -> ok
113- end ,
109+ ok = rabbit_ra_systems :ensure_stopped (),
114110
115111 case RestartFFCtl of
116112 true ->
@@ -135,7 +131,7 @@ join(RemoteNode, NodeType)
135131 % % `rabbit_ff_registry_wrapper'.
136132 rabbit_ff_registry_factory :acquire_state_change_lock (),
137133 try
138- ok = rabbit_db :reset (),
134+ rabbit_db :reset (),
139135 rabbit_feature_flags :copy_feature_states_after_reset (
140136 RemoteNode )
141137 after
@@ -153,20 +149,8 @@ join(RemoteNode, NodeType)
153149
154150 ok = rabbit_node_monitor :notify_left_cluster (node ()),
155151
156- % % Now that the files are all gone after the reset above, restart
157- % % the Ra systems. They will recreate their folder in the process.
158- case RestartRabbit of
159- true ->
160- ok ;
161- false ->
162- case RestartRaSystems of
163- true ->
164- ok = rabbit_ra_systems :ensure_started (),
165- ok = rabbit_khepri :setup ();
166- false ->
167- ok
168- end
169- end ,
152+ % % We might need Khepri to add this node to the cluster.
153+ ok = rabbit_khepri :setup (),
170154
171155 ? LOG_INFO (
172156 " DB: joining cluster using remote nodes:~n~tp " , [ClusterNodes ],
0 commit comments