diff options
author | Matthias Radestock <matthias@rabbitmq.com> | 2012-07-12 16:56:15 +0100 |
---|---|---|
committer | Matthias Radestock <matthias@rabbitmq.com> | 2012-07-12 16:56:15 +0100 |
commit | cad12c0f75cd1b6c5566fff203bfb9965214dbd4 (patch) | |
tree | f5e00f5f898a5c7830c84e243fc38edf1762e322 | |
parent | f9ff9e28a9249f1633995e4c63bccf9d8009da25 (diff) | |
download | rabbitmq-server-bug25052.tar.gz |
blow up if Ref is unknownbug25052
just like the old version did
-rw-r--r-- | src/file_handle_cache.erl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/file_handle_cache.erl b/src/file_handle_cache.erl index fb20ce93..13ee4249 100644 --- a/src/file_handle_cache.erl +++ b/src/file_handle_cache.erl @@ -377,7 +377,7 @@ needs_sync(Ref) -> %% This must *not* use with_handles/2; see bug 25052 case get({Ref, fhc_handle}) of #handle { is_dirty = false, write_buffer = [] } -> false; - _ -> true + #handle {} -> true end. position(Ref, NewOffset) -> |