diff options
| author | Matthew Sackman <matthew@lshift.net> | 2009-06-23 17:29:21 +0100 |
|---|---|---|
| committer | Matthew Sackman <matthew@lshift.net> | 2009-06-23 17:29:21 +0100 |
| commit | 9bcdac9c76c5049c57fa510156dbe9f96a635320 (patch) | |
| tree | a2d7c77f803c9350544447008e05e05636519906 /src | |
| parent | 36d6cbebf04f68ad8563a71fafb064459695ae8a (diff) | |
| download | rabbitmq-server-git-9bcdac9c76c5049c57fa510156dbe9f96a635320.tar.gz | |
Failed to either watch the logs or remember that the timer is cancelled on disk_queue exit
Diffstat (limited to 'src')
| -rw-r--r-- | src/rabbit_disk_queue.erl | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/rabbit_disk_queue.erl b/src/rabbit_disk_queue.erl index 92e5ece8f7..ac58d89d5e 100644 --- a/src/rabbit_disk_queue.erl +++ b/src/rabbit_disk_queue.erl @@ -716,6 +716,8 @@ start_commit_timer(State = #dqstate { timer_ref = undefined }) -> {ok, TRef} = timer:apply_after(?SYNC_INTERVAL, ?MODULE, filesync, []), State #dqstate { timer_ref = TRef }. +stop_commit_timer(State = #dqstate { timer_ref = undefined }) -> + State; stop_commit_timer(State = #dqstate { timer_ref = TRef }) -> {ok, cancel} = timer:cancel(TRef), State #dqstate { timer_ref = undefined }. |
