summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/rabbit_msg_store.erl2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/rabbit_msg_store.erl b/src/rabbit_msg_store.erl
index 7faa724536..56d65d75e9 100644
--- a/src/rabbit_msg_store.erl
+++ b/src/rabbit_msg_store.erl
@@ -1801,7 +1801,7 @@ build_index_worker(Gatherer, State = #msstate { dir = Dir },
enqueue_build_index_workers(Gatherer, Left, [], State) ->
exit(normal);
enqueue_build_index_workers(Gatherer, Left, [File|Files], State) ->
- ok = worker_pool:submit(
+ ok = worker_pool:dispatch_sync(
fun () ->
link(Gatherer),
ok = build_index_worker(Gatherer, State,