diff options
author | Matthias Radestock <matthias@rabbitmq.com> | 2010-08-22 19:51:27 +0100 |
---|---|---|
committer | Matthias Radestock <matthias@rabbitmq.com> | 2010-08-22 19:51:27 +0100 |
commit | 841481da2c539a93d1689f809789f148902f6bec (patch) | |
tree | cfba0552a1c82f6e29eea7d83df0ab6fbd4c56cb | |
parent | 763a78a91171369b2e9d09b8ae12de05dfa58f9b (diff) | |
download | rabbitmq-server-841481da2c539a93d1689f809789f148902f6bec.tar.gz |
cosmetic
-rw-r--r-- | src/file_handle_cache.erl | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/file_handle_cache.erl b/src/file_handle_cache.erl index 7edba239..2efb4e55 100644 --- a/src/file_handle_cache.erl +++ b/src/file_handle_cache.erl @@ -534,7 +534,7 @@ get_or_reopen(RefNewOrReopens) -> case reopen(ClosedHdls) of {ok, RefHdls} -> sort_handles(RefNewOrReopens, OpenHdls, RefHdls, []); - {error, Error} -> {error, Error} + Error -> Error end; close -> [soft_close(Ref, Handle) || @@ -569,12 +569,12 @@ reopen([{Ref, NewOrReopen, Handle = #handle { hdl = closed, put({Ref, fhc_handle}, Handle2), reopen(RefNewOrReopenHdls, gb_trees:insert(Now, Ref, Tree), [{Ref, Handle2} | RefHdls]); - {error, Reason} -> + Error -> %% NB: none of the handles in ToOpen are in the age tree Oldest = oldest(Tree, fun () -> undefined end), [gen_server:cast(?SERVER, {close, self(), Oldest}) || _ <- ToOpen], put_age_tree(Tree), - {error, Reason} + Error end. partition_handles(RefNewOrReopens) -> |