Skip to content

Commit b57483d

Browse files
author
Daniil Fedotov
committed
Make queue migration batch size configurable
1 parent cfc9a88 commit b57483d

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/rabbit_variable_queue.erl

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2732,7 +2732,9 @@ move_messages_to_vhost_store() ->
27322732
OldStore = run_old_persistent_store(RecoveryRefs, StartFunState),
27332733
%% New store should not be recovered.
27342734
NewStoreSup = start_new_store_sup(),
2735-
in_batches(?QUEUE_MIGRATION_BATCH_SIZE,
2735+
MigrationBatchSize = application:get_env(rabbit, queue_migration_batch_size,
2736+
?QUEUE_MIGRATION_BATCH_SIZE)
2737+
in_batches(MigrationBatchSize,
27362738
{rabbit_variable_queue, migrate_queue, [OldStore, NewStoreSup]},
27372739
QueuesWithTerms),
27382740

0 commit comments

Comments
 (0)