Skip to content

Commit b0eaa57

Browse files
michaelklishinmergify[bot]
authored andcommitted
Naming #13643
(cherry picked from commit e6bc6a4)
1 parent d809dff commit b0eaa57

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

deps/rabbit/src/rabbit_db_cluster.erl

+1-1
Original file line numberDiff line numberDiff line change
@@ -227,7 +227,7 @@ join(RemoteNode, NodeType)
227227
"with node ~tp, but ~tp disagrees. ~tp will ask "
228228
"to leave the cluster and try again.",
229229
[RemoteNode, node(), node(), node()]),
230-
ok = rabbit_mnesia:leave_discover_cluster(RemoteNode),
230+
ok = rabbit_mnesia:leave_then_rediscover_cluster(RemoteNode),
231231
join(RemoteNode, NodeType)
232232
end;
233233
{error, _} = Error ->

deps/rabbit/src/rabbit_mnesia.erl

+2-2
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@
7373
-export([node_info/0, remove_node_if_mnesia_running/1]).
7474

7575
%% Used internally in `rabbit_db_cluster'.
76-
-export([members/0, leave_discover_cluster/1]).
76+
-export([members/0, leave_then_rediscover_cluster/1]).
7777

7878
%% Used internally in `rabbit_khepri'.
7979
-export([mnesia_and_msg_store_files/0]).
@@ -922,7 +922,7 @@ remove_node_if_mnesia_running(Node) ->
922922
end
923923
end.
924924

925-
leave_discover_cluster(DiscoveryNode) ->
925+
leave_then_rediscover_cluster(DiscoveryNode) ->
926926
{ClusterNodes, _, _} = discover_cluster([DiscoveryNode]),
927927
leave_cluster(rabbit_nodes:nodes_excl_me(ClusterNodes)).
928928

0 commit comments

Comments
 (0)