Skip to content

Commit

Permalink
debug
Browse files Browse the repository at this point in the history
  • Loading branch information
dumbbell committed Nov 14, 2024
1 parent 7175e51 commit cba4e22
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions deps/rabbit/src/rabbit_db_cluster.erl
Original file line number Diff line number Diff line change
Expand Up @@ -219,11 +219,14 @@ join(RemoteNode, NodeType)
end.

join_using_mnesia(ClusterNodes, NodeType) when is_list(ClusterNodes) ->
?LOG_ALERT("Joining using Mnesia, ~p", [NodeType]),
rabbit_mnesia:join_cluster(ClusterNodes, NodeType).

join_using_khepri(ClusterNodes, disc) ->
?LOG_ALERT("Joining using Khepri, ~p", [disc]),
rabbit_khepri:add_member(node(), ClusterNodes);
join_using_khepri(_ClusterNodes, ram = NodeType) ->
?LOG_ALERT("Joining using Khepri, ~p", [ram]),
{error, {node_type_unsupported, khepri, NodeType}}.

-spec forget_member(Node, RemoveWhenOffline) -> ok when
Expand Down

0 comments on commit cba4e22

Please sign in to comment.