Skip to content

Commit e75061f

Browse files
Merge pull request #476 from rabbitmq/rabbitmq-server-470
Makes 'CTL forget_cluster_node' execute net_adm:ping/1 whilst in distributed mode
2 parents 169a325 + 85bbed9 commit e75061f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/rabbit_control_main.erl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -677,10 +677,10 @@ read_pid_file(PidFile, Wait) ->
677677

678678
become(BecomeNode) ->
679679
error_logger:tty(false),
680-
ok = net_kernel:stop(),
681680
case net_adm:ping(BecomeNode) of
682681
pong -> exit({node_running, BecomeNode});
683-
pang -> io:format(" * Impersonating node: ~s...", [BecomeNode]),
682+
pang -> ok = net_kernel:stop(),
683+
io:format(" * Impersonating node: ~s...", [BecomeNode]),
684684
{ok, _} = rabbit_cli:start_distribution(BecomeNode),
685685
io:format(" done~n", []),
686686
Dir = mnesia:system_info(directory),

0 commit comments

Comments
 (0)