summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMatthias Radestock <matthias@rabbitmq.com>2012-07-12 16:56:15 +0100
committerMatthias Radestock <matthias@rabbitmq.com>2012-07-12 16:56:15 +0100
commit9da492640eb74ab9fc47ceb457c4f307306af28a (patch)
treef5e00f5f898a5c7830c84e243fc38edf1762e322 /src
parent7eae592338a762fde0feef79c97bf80af3a16119 (diff)
downloadrabbitmq-server-git-9da492640eb74ab9fc47ceb457c4f307306af28a.tar.gz
blow up if Ref is unknown
just like the old version did
Diffstat (limited to 'src')
-rw-r--r--src/file_handle_cache.erl2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/file_handle_cache.erl b/src/file_handle_cache.erl
index fb20ce9342..13ee42499a 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) ->