diff options
| author | Matthew Sackman <matthew@rabbitmq.com> | 2010-10-22 15:23:12 +0100 |
|---|---|---|
| committer | Matthew Sackman <matthew@rabbitmq.com> | 2010-10-22 15:23:12 +0100 |
| commit | efe0dbd87b4110a293946fe78fc2e39c3e96d1ab (patch) | |
| tree | d2cd456c74be1ef7feac70643b053e694e00e7c5 | |
| parent | 9fdf6a76a0e4de9d9759911db104d4df2f7e3cce (diff) | |
| download | rabbitmq-server-git-efe0dbd87b4110a293946fe78fc2e39c3e96d1ab.tar.gz | |
Ensure at start up, if we have msgs (i.e. recovery, not creation), and a TTL, then we should kick off the expiry timer
| -rw-r--r-- | src/rabbit_amqqueue_process.erl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/rabbit_amqqueue_process.erl b/src/rabbit_amqqueue_process.erl index a2fab54cc2..ee4ba67534 100644 --- a/src/rabbit_amqqueue_process.erl +++ b/src/rabbit_amqqueue_process.erl @@ -162,7 +162,7 @@ init_expires(State = #q{q = #amqqueue{arguments = Arguments}}) -> init_ttl(State = #q{q = #amqqueue{arguments = Arguments}}) -> case rabbit_misc:table_lookup(Arguments, <<"x-message-ttl">>) of - {_Type, TTL} -> State#q{ttl = TTL}; + {_Type, TTL} -> ensure_ttl_timer(State#q{ttl = TTL}); undefined -> State end. |
