From 0e0635ffee15fbcf73c610d23471c17b75981d3b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc=20Hoguin?= Date: Thu, 8 Sep 2022 15:41:46 +0200 Subject: [PATCH] CQ: Make the resume/1 function sync to disk 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. --- deps/rabbit/src/rabbit_variable_queue.erl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/deps/rabbit/src/rabbit_variable_queue.erl b/deps/rabbit/src/rabbit_variable_queue.erl index 661870cb7a62..ec58d32d2744 100644 --- a/deps/rabbit/src/rabbit_variable_queue.erl +++ b/deps/rabbit/src/rabbit_variable_queue.erl @@ -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 } }) ->