Skip to content

Commit 6047583

Browse files
Merge pull request #11288 from rabbitmq/loic-fix-fan-out-pread-crash-main
CQ: Fix entry missing from cache leading to crash on read
2 parents 8f19a04 + 93e4e88 commit 6047583

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

deps/rabbit/src/rabbit_msg_store.erl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -907,7 +907,7 @@ handle_cast({write, CRef, MsgRef, MsgId, Flow},
907907
%% the normal logic for that in write_message/4 and
908908
%% maybe_roll_to_new_file/2.
909909
case index_lookup(MsgId, State) of
910-
[#msg_location { file = File }]
910+
#msg_location { file = File }
911911
when File == State #msstate.current_file ->
912912
ok;
913913
_ ->

0 commit comments

Comments
 (0)