summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMatthias Radestock <matthias@rabbitmq.com>2010-07-06 23:09:47 +0100
committerMatthias Radestock <matthias@rabbitmq.com>2010-07-06 23:09:47 +0100
commit6ccd2026cc2193a772c9669dca1ae49845869cd2 (patch)
tree2b9759582c0f9cef002fdbf481a34d4af12e5144 /src
parent0f8ab46e829954ffbbba436c57be640360a41705 (diff)
downloadrabbitmq-server-git-6ccd2026cc2193a772c9669dca1ae49845869cd2.tar.gz
oops
Diffstat (limited to 'src')
-rw-r--r--src/rabbit_variable_queue.erl3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/rabbit_variable_queue.erl b/src/rabbit_variable_queue.erl
index 6f6f3d923d..a558b02239 100644
--- a/src/rabbit_variable_queue.erl
+++ b/src/rabbit_variable_queue.erl
@@ -640,7 +640,8 @@ needs_idle_timeout(State = #vqstate { target_ram_msg_count = TargetRamMsgCount,
ram_msg_count = RamMsgCount,
ram_index_count = RamIndexCount}) ->
case reduction(RamMsgCount, TargetRamMsgCount) of
- 0 -> reduction(RamIndexCount, State) == ?IO_BATCH_SIZE;
+ 0 -> Permitted = permitted_ram_index_count(State),
+ reduction(RamIndexCount, Permitted) == ?IO_BATCH_SIZE;
_ -> true
end.