Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 6 additions & 3 deletions deps/rabbit/src/rabbit_ra_systems.erl
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,8 @@ setup(_) ->
-spec all_ra_systems() -> [ra_system_name()].

all_ra_systems() ->
[quorum_queues,
coordination].
[coordination,
quorum_queues].

-spec are_running() -> AreRunning when
AreRunning :: boolean().
Expand Down Expand Up @@ -165,7 +165,10 @@ ensure_stopped() ->
?LOG_DEBUG(
"Stopping Ra systems",
#{domain => ?RMQLOG_DOMAIN_GLOBAL}),
lists:foreach(fun ensure_ra_system_stopped/1, all_ra_systems()),
%% lists:reverse/1 is used to stop systems in the same order as would be
%% done if the ra application was terminated.
lists:foreach(fun ensure_ra_system_stopped/1,
lists:reverse(all_ra_systems())),
?LOG_DEBUG(
"Ra systems stopped",
#{domain => ?RMQLOG_DOMAIN_GLOBAL}),
Expand Down
Loading