Skip to content

Commit

Permalink
Merge pull request #9508 from rabbitmq/mergify/bp/v3.12.x/pr-9507
Browse files Browse the repository at this point in the history
CQ: Fix a crash when CMQ master changes in mixed environment test (backport #9507)
  • Loading branch information
HoloRin authored Sep 21, 2023
2 parents 64116a9 + 6bcbcbd commit 0341b5f
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion deps/rabbit/src/rabbit_variable_queue.erl
Original file line number Diff line number Diff line change
Expand Up @@ -1177,7 +1177,11 @@ convert_from_v2_to_v1_loop(QueueName, V1Index0, V2Index0, V2Store0,
V1Index1b = rabbit_queue_index:publish(MsgId, SeqId, rabbit_msg_store, Props, IsPersistent, infinity, V1Index1a),
rabbit_queue_index:deliver([SeqId], V1Index1b)
end,
{V1Index2, V2Store1}
{V1Index2, V2Store1};
%% Ignore messages that are in memory and had an entry written in the index.
%% @todo Remove this clause some time after CMQs get removed as this will become dead code.
({undefined, _, memory, _, _}, {V1Index1, V2Store1}) ->
{V1Index1, V2Store1}
end, {V1Index0, V2Store0}, Messages),
%% Flush to disk to avoid keeping too much in memory between segments.
V1Index = rabbit_queue_index:flush(V1Index3),
Expand Down

0 comments on commit 0341b5f

Please sign in to comment.