Skip to content

Commit 41b41f6

Browse files
committed
ensure that rabbit dies when recovery fails
rather than just sitting there
1 parent 96aa1b9 commit 41b41f6

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/rabbit_queue_index.erl

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -505,7 +505,10 @@ queue_index_walker({start, DurableQueues}) when is_list(DurableQueues) ->
505505
[begin
506506
ok = gatherer:fork(Gatherer),
507507
ok = worker_pool:submit_async(
508-
fun () -> queue_index_walker_reader(QueueName, Gatherer)
508+
fun () -> link(Gatherer),
509+
ok = queue_index_walker_reader(QueueName, Gatherer),
510+
unlink(Gatherer),
511+
ok
509512
end)
510513
end || QueueName <- DurableQueues],
511514
queue_index_walker({next, Gatherer});

0 commit comments

Comments
 (0)