summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthias Radestock <matthias@rabbitmq.com>2010-07-06 17:28:06 +0100
committerMatthias Radestock <matthias@rabbitmq.com>2010-07-06 17:28:06 +0100
commitf609f086d2fc18aa87202ec5f89c7d769c7f91fa (patch)
tree52ce4aa5deee10045a5d6314cf244ad161d1fa06
parent7f7593de924911b24514b2ab243fe31f5ba245fb (diff)
downloadrabbitmq-server-git-f609f086d2fc18aa87202ec5f89c7d769c7f91fa.tar.gz
tiny refactor
-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,