Skip to content

Commit 3555a1b

Browse files
committed
assert
1 parent 8f7f7b3 commit 3555a1b

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

deps/rabbit/src/rabbit_db.erl

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -196,8 +196,11 @@ force_load_on_next_boot_using_mnesia() ->
196196
rabbit_mnesia:force_load_next_boot().
197197

198198
post_reset() ->
199-
%% We stop all Ra systems because their files are about to be removed.
200-
rabbit_ra_systems:ensure_stopped(),
199+
%% We assert all Ra systems are stopped because their files are about to
200+
%% be removed.
201+
false = lists:any(
202+
fun rabbit_ra_systems:is_running/1,
203+
rabbit_ra_systems:all_ra_systems()),
201204

202205
%% We reset the state of feature flags, both in memory and on disk. The
203206
%% state recorded on disk would be deleted with the wipe below anyway.

0 commit comments

Comments
 (0)