summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/rabbit_variable_queue.erl5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/rabbit_variable_queue.erl b/src/rabbit_variable_queue.erl
index c1a67ddbaa..8b9d17e7a1 100644
--- a/src/rabbit_variable_queue.erl
+++ b/src/rabbit_variable_queue.erl
@@ -1153,9 +1153,8 @@ limit_ram_index(State = #vqstate { ram_index_count = RamIndexCount }) ->
State
end.
-limit_ram_index(_MapFoldFilterFun, Q, {Reduction, IndexState})
- when Reduction == 0 ->
- {Q, {Reduction, IndexState}};
+limit_ram_index(_MapFoldFilterFun, Q, {0, IndexState}) ->
+ {Q, {0, IndexState}};
limit_ram_index(MapFoldFilterFun, Q, {Reduction, IndexState}) ->
MapFoldFilterFun(
fun erlang:'not'/1,