Skip to content

Commit

Permalink
CQ: Make the resume/1 function sync to disk
Browse files Browse the repository at this point in the history
This just restores behavior that was there before via
reduce_memory_use. I am not sure if it is of any use
but it doesn't hurt to have it.
  • Loading branch information
lhoguin committed Sep 27, 2022
1 parent 1d7ce62 commit 0e0635f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion deps/rabbit/src/rabbit_variable_queue.erl
Original file line number Diff line number Diff line change
Expand Up @@ -931,7 +931,7 @@ handle_pre_hibernate(State = #vqstate { index_mod = IndexMod,
unconfirmed_simple = sets:new([{version,2}]),
confirmed = sets:union(C, UCS) }.

resume(State) -> a(State).
resume(State) -> a(timeout(State)).

msg_rates(#vqstate { rates = #rates { in = AvgIngressRate,
out = AvgEgressRate } }) ->
Expand Down

0 comments on commit 0e0635f

Please sign in to comment.