@@ -2666,10 +2666,6 @@ rabbit_log:error("MIGRATING!!"),
2666
2666
OldStore = run_old_persistent_store (RecoveryTerms , StartFunState ),
2667
2667
% % New store should not be recovered.
2668
2668
NewStoreSup = start_new_store_sup (),
2669
- lists :map (fun (Queue ) ->
2670
- migrate_queue (Queue , OldStore , NewStoreSup )
2671
- end ,
2672
- Queues ),
2673
2669
2674
2670
{ok , Gatherer } = gatherer :start_link (),
2675
2671
lists :map (
@@ -2699,7 +2695,7 @@ migrate_queue(Queue, OldStore, NewStoreSup) ->
2699
2695
rabbit_queue_index :scan_queue_segments (
2700
2696
% % We migrate only persistent messages, which is stored in msg_store
2701
2697
% % and is not acked yet
2702
- fun (_SeqId , MsgId , _MsgProps , true , _IsDelivered , false , OldC )
2698
+ fun (_SeqId , MsgId , _MsgProps , true , _IsDelivered , no_ack , OldC )
2703
2699
when is_binary (MsgId ) ->
2704
2700
migrate_message (MsgId , OldC , NewStoreClient );
2705
2701
(_SeqId , _MsgId , _MsgProps ,
@@ -2720,7 +2716,7 @@ migrate_message(MsgId, OldC, NewC) ->
2720
2716
ok = rabbit_msg_store :remove ([MsgId ], OldC1 ),
2721
2717
OldC1 ;
2722
2718
_ -> OldC
2723
- end ;
2719
+ end .
2724
2720
2725
2721
get_new_store_client (# amqqueue {name = # resource {virtual_host = VHost }},
2726
2722
NewStoreSup ) ->
0 commit comments