diff options
author | Matthias Radestock <matthias@rabbitmq.com> | 2014-03-27 18:50:47 +0000 |
---|---|---|
committer | Matthias Radestock <matthias@rabbitmq.com> | 2014-03-27 18:50:47 +0000 |
commit | a885b37887138f41b4bcfeaaafb58864e7857404 (patch) | |
tree | c20fa764d8ba95f67ddab6b7612de39dd7526148 /src | |
parent | c34b33ba0fa0e9647d39f3e6a3452825e50cd2ef (diff) | |
download | rabbitmq-server-bug26087.tar.gz |
give in to dialyzerbug26087
Diffstat (limited to 'src')
-rw-r--r-- | src/rabbit_queue_index.erl | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/rabbit_queue_index.erl b/src/rabbit_queue_index.erl index ad42ce6e..56c19d3f 100644 --- a/src/rabbit_queue_index.erl +++ b/src/rabbit_queue_index.erl @@ -654,9 +654,8 @@ get_journal_handle(State = #qistate { journal_handle = Hdl }) -> %% Loading Journal. This isn't idempotent and will mess up the counts %% if you call it more than once on the same state. Assumes the counts %% are 0 to start with. -load_journal(State = #qistate { journal_handle = Hdl, dir = Dir }) -> - case (Hdl =/= undefined orelse - rabbit_file:is_file(filename:join(Dir, ?JOURNAL_FILENAME))) of +load_journal(State = #qistate { dir = Dir }) -> + case rabbit_file:is_file(filename:join(Dir, ?JOURNAL_FILENAME)) of true -> {JournalHdl, State1} = get_journal_handle(State), {ok, 0} = file_handle_cache:position(JournalHdl, 0), load_journal_entries(State1); |