@@ -2794,17 +2794,17 @@ in_batches(Size, BatchNum, MFA, List, MessageStart, MessageEnd) ->
2794
2794
log_upgrade (MessageEnd , [BatchNum , Size ]),
2795
2795
in_batches (Size , BatchNum + 1 , MFA , Tail , MessageStart , MessageEnd ).
2796
2796
2797
- migrate_queue ({QueueName , RecoveryTerm }, OldStore , NewStoreSup ) ->
2797
+ migrate_queue ({QueueName = # resource { virtual_host = VHost , name = Name } , RecoveryTerm }, OldStore , NewStoreSup ) ->
2798
2798
log_upgrade_verbose (
2799
2799
" Migrating messages in queue ~s in vhost ~s to per-vhost message store~n " ,
2800
- [QueueName # resource . name , QueueName # resource . virtual_host ]),
2800
+ [Name , VHost ]),
2801
2801
OldStoreClient = get_global_store_client (OldStore ),
2802
2802
NewStoreClient = get_per_vhost_store_client (QueueName , NewStoreSup ),
2803
2803
% % WARNING: During scan_queue_segments queue index state is being recovered
2804
2804
% % and terminated. This can cause side effects!
2805
2805
rabbit_queue_index :scan_queue_segments (
2806
- % % We migrate only persistent messages, which is stored in msg_store
2807
- % % and is not acked yet
2806
+ % % We migrate only persistent messages which are found in message store
2807
+ % % and are not acked yet
2808
2808
fun (_SeqId , MsgId , _MsgProps , true , _IsDelivered , no_ack , OldC )
2809
2809
when is_binary (MsgId ) ->
2810
2810
migrate_message (MsgId , OldC , NewStoreClient );
@@ -2824,7 +2824,7 @@ migrate_queue({QueueName, RecoveryTerm}, OldStore, NewStoreSup) ->
2824
2824
{persistent_ref , NewClientRef }),
2825
2825
rabbit_queue_index :update_recovery_term (QueueName , NewRecoveryTerm )
2826
2826
end ,
2827
- log_upgrade_verbose (" Queue migration finished ~p " , [QueueName ]),
2827
+ log_upgrade_verbose (" Finished migrating queue ~s in vhost ~s " , [Name , VHost ]),
2828
2828
{QueueName , NewClientRef }.
2829
2829
2830
2830
migrate_message (MsgId , OldC , NewC ) ->
@@ -2903,4 +2903,4 @@ log_upgrade_verbose(Msg) ->
2903
2903
log_upgrade_verbose (Msg , []).
2904
2904
2905
2905
log_upgrade_verbose (Msg , Args ) ->
2906
- rabbit_log_upgrade :info (Msg , Args ).
2906
+ rabbit_log_upgrade :info (Msg , Args ).
0 commit comments