Skip to content

Commit e23ac84

Browse files
Merge pull request #11070 from rabbitmq/faster-stop_app
Speed up stop_app
2 parents 0175c80 + 4f35fdb commit e23ac84

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

deps/rabbitmq_management_agent/src/rabbit_mgmt_db_handler.erl

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,10 @@ handle_event(_, State) ->
9292
handle_info(_Info, State) ->
9393
{ok, State}.
9494

95+
terminate(stop, _State) ->
96+
%% if the node is stopping, we don't want to wait
97+
%% 5 seconds for the statistics to get disabled
98+
ok;
9599
terminate(_Arg, _State) ->
96100
ensure_statistics_disabled(),
97101
ok.

0 commit comments

Comments
 (0)