Skip to content

Commit

Permalink
Merge pull request #11288 from rabbitmq/loic-fix-fan-out-pread-crash-…
Browse files Browse the repository at this point in the history
…main

CQ: Fix entry missing from cache leading to crash on read
  • Loading branch information
michaelklishin committed May 21, 2024
2 parents 8f19a04 + 93e4e88 commit 6047583
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion deps/rabbit/src/rabbit_msg_store.erl
Original file line number Diff line number Diff line change
Expand Up @@ -907,7 +907,7 @@ handle_cast({write, CRef, MsgRef, MsgId, Flow},
%% the normal logic for that in write_message/4 and
%% maybe_roll_to_new_file/2.
case index_lookup(MsgId, State) of
[#msg_location { file = File }]
#msg_location { file = File }
when File == State #msstate.current_file ->
ok;
_ ->
Expand Down

0 comments on commit 6047583

Please sign in to comment.