Skip to content

Commit

Permalink
Merge pull request #11292 from rabbitmq/mergify/bp/v3.13.x/pr-11288
Browse files Browse the repository at this point in the history
CQ: Fix entry missing from cache leading to crash on read (backport #11288)
  • Loading branch information
michaelklishin committed May 21, 2024
2 parents 06b7bc6 + 43849be commit 6dbe4de
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 6dbe4de

Please sign in to comment.