diff options
| author | Francesco Mazzoli <francesco@rabbitmq.com> | 2012-02-22 12:40:05 +0000 |
|---|---|---|
| committer | Francesco Mazzoli <francesco@rabbitmq.com> | 2012-02-22 12:40:05 +0000 |
| commit | 17c67eaf445372bc4549169e024fcca93d3589cb (patch) | |
| tree | 489d09178fdc701a85ce25f5043b22885b542c1a /src | |
| parent | 65d7a0d4bce7c53f03c9c51ee6c202f0313d2b75 (diff) | |
| download | rabbitmq-server-git-17c67eaf445372bc4549169e024fcca93d3589cb.tar.gz | |
Removed reduce_memory_use test before actual reduce_memory_use in timeout/1.
Diffstat (limited to 'src')
| -rw-r--r-- | src/rabbit_variable_queue.erl | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/src/rabbit_variable_queue.erl b/src/rabbit_variable_queue.erl index ea18ef2a2b..a4d18b50ff 100644 --- a/src/rabbit_variable_queue.erl +++ b/src/rabbit_variable_queue.erl @@ -743,14 +743,7 @@ needs_timeout(State = #vqstate { index_state = IndexState }) -> timeout(State = #vqstate { index_state = IndexState }) -> IndexState1 = rabbit_queue_index:sync(IndexState), State1 = State #vqstate { index_state = IndexState1 }, - a(case reduce_memory_use( - fun (_Quota, State2) -> {0, State2} end, - fun (_Quota, State2) -> State2 end, - fun (_Quota, State2) -> {0, State2} end, - State) of - {true, _State} -> reduce_memory_use(State1); - {false, _State} -> State1 - end). + reduce_memory_use(State1). handle_pre_hibernate(State = #vqstate { index_state = IndexState }) -> State #vqstate { index_state = rabbit_queue_index:flush(IndexState) }. |
