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 | c55c172037e446090849a8eebcf24c7893c8f641 (patch) | |
| tree | aec7a3f62552f12fd7e6ff96fec0747dccd06a38 | |
| parent | 9a8acf9cc923ebe4eb6faf5fb3677a37e9eccc58 (diff) | |
| download | rabbitmq-server-git-c55c172037e446090849a8eebcf24c7893c8f641.tar.gz | |
Turns out that 0 and true are distinct. sigh.
| -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 8d924f8c2c..18423dd7b0 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, |
