File tree 1 file changed +6
-3
lines changed
1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -43,8 +43,8 @@ setup(_) ->
43
43
-spec all_ra_systems () -> [ra_system_name ()].
44
44
45
45
all_ra_systems () ->
46
- [quorum_queues ,
47
- coordination ].
46
+ [coordination ,
47
+ quorum_queues ].
48
48
49
49
-spec are_running () -> AreRunning when
50
50
AreRunning :: boolean ().
@@ -165,7 +165,10 @@ ensure_stopped() ->
165
165
? LOG_DEBUG (
166
166
" Stopping Ra systems" ,
167
167
#{domain => ? RMQLOG_DOMAIN_GLOBAL }),
168
- lists :foreach (fun ensure_ra_system_stopped /1 , all_ra_systems ()),
168
+ % % lists:reverse/1 is used to stop systems in the same order as would be
169
+ % % done if the ra application was terminated.
170
+ lists :foreach (fun ensure_ra_system_stopped /1 ,
171
+ lists :reverse (all_ra_systems ())),
169
172
? LOG_DEBUG (
170
173
" Ra systems stopped" ,
171
174
#{domain => ? RMQLOG_DOMAIN_GLOBAL }),
You can’t perform that action at this time.
0 commit comments