Skip to content

Commit 053b4a4

Browse files
dcorbachomergify[bot]
authored andcommitted
rabbit_mnesia: Emit notify_left_cluster from forget_cluster_node
This function is called directly from CLI commands, skipping the `rabbit_db_cluster` layer (cherry picked from commit e856a6c)
1 parent f2e7149 commit 053b4a4

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

deps/rabbit/src/rabbit_mnesia.erl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -886,6 +886,7 @@ remove_node_if_mnesia_running(Node) ->
886886
%% change being propagated to all nodes
887887
case mnesia:del_table_copy(schema, Node) of
888888
{atomic, ok} ->
889+
rabbit_node_monitor:notify_left_cluster(Node),
889890
rabbit_amqqueue:forget_all_durable(Node),
890891
ok;
891892
{aborted, Reason} ->

0 commit comments

Comments
 (0)