diff options
author | Matthew Sackman <matthew@rabbitmq.com> | 2011-01-10 15:03:11 +0000 |
---|---|---|
committer | Matthew Sackman <matthew@rabbitmq.com> | 2011-01-10 15:03:11 +0000 |
commit | 36d22d58323b49db4eb26b39575ceaa4f641d4b2 (patch) | |
tree | aec7a3f62552f12fd7e6ff96fec0747dccd06a38 | |
parent | 9deea121abaab5b5a966e65e5a54106baa47b789 (diff) | |
download | rabbitmq-server-bug23636.tar.gz |
Turns out that 0 and true are distinct. sigh.bug23636
-rw-r--r-- | src/rabbit_variable_queue.erl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/rabbit_variable_queue.erl b/src/rabbit_variable_queue.erl index 8d924f8c..18423dd7 100644 --- a/src/rabbit_variable_queue.erl +++ b/src/rabbit_variable_queue.erl @@ -811,7 +811,7 @@ ram_duration(State = #vqstate { needs_idle_timeout(State = #vqstate { on_sync = OnSync, unconfirmed = UC }) -> case {OnSync, gb_sets:is_empty(UC)} of - {?BLANK_SYNC, 0} -> + {?BLANK_SYNC, true} -> {Res, _State} = reduce_memory_use( fun (_Quota, State1) -> {0, State1} end, fun (_Quota, State1) -> State1 end, |