summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthew Sackman <matthew@rabbitmq.com>2010-12-09 17:43:46 +0000
committerMatthew Sackman <matthew@rabbitmq.com>2010-12-09 17:43:46 +0000
commit4df88aeeccc9272d03c2c423fb37c1008eaa8ef1 (patch)
treee720a941943d94678c1b0a24501afafde688d8d3
parent5b57841b188c8427b4ffa32df1e52607516e1ba7 (diff)
downloadrabbitmq-server-git-4df88aeeccc9272d03c2c423fb37c1008eaa8ef1.tar.gz
Predictions of parameter explosions are high
-rw-r--r--src/rabbit_amqqueue_process.erl6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/rabbit_amqqueue_process.erl b/src/rabbit_amqqueue_process.erl
index 4985643122..468a6ee38c 100644
--- a/src/rabbit_amqqueue_process.erl
+++ b/src/rabbit_amqqueue_process.erl
@@ -48,7 +48,7 @@
handle_info/2, handle_pre_hibernate/1, prioritise_call/3,
prioritise_cast/2, prioritise_info/2]).
--export([init_with_backing_queue_state/3]).
+-export([init_with_backing_queue_state/4]).
-import(queue).
-import(erlang).
@@ -135,7 +135,7 @@ init(Q) ->
guid_to_channel = dict:new()}, hibernate,
{backoff, ?HIBERNATE_AFTER_MIN, ?HIBERNATE_AFTER_MIN, ?DESIRED_HIBERNATE}}.
-init_with_backing_queue_state(Q, BQ, BQS) ->
+init_with_backing_queue_state(Q, BQ, BQS, RateTRef) ->
?LOGDEBUG("Queue starting - ~p~n", [Q]),
process_flag(trap_exit, true),
process_args(#q{q = Q#amqqueue{pid = self()},
@@ -147,7 +147,7 @@ init_with_backing_queue_state(Q, BQ, BQS) ->
blocked_consumers = queue:new(),
expires = undefined,
sync_timer_ref = undefined,
- rate_timer_ref = undefined,
+ rate_timer_ref = RateTRef,
expiry_timer_ref = undefined,
ttl = undefined,
stats_timer = rabbit_event:init_stats_timer(),