summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMatthias Radestock <matthias@rabbitmq.com>2011-11-29 11:42:56 +0000
committerMatthias Radestock <matthias@rabbitmq.com>2011-11-29 11:42:56 +0000
commit41b41f67387fa25a66d3cfe923762cce8f962523 (patch)
tree74dfd24fd53daf23904bdaa9b1af7d61be30fb34 /src
parent96aa1b9fe2538b9114bcb9536a1b278236dbfc60 (diff)
downloadrabbitmq-server-git-41b41f67387fa25a66d3cfe923762cce8f962523.tar.gz
ensure that rabbit dies when recovery fails
rather than just sitting there
Diffstat (limited to 'src')
-rw-r--r--src/rabbit_queue_index.erl5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/rabbit_queue_index.erl b/src/rabbit_queue_index.erl
index d729a7ed28..f03c1d1c76 100644
--- a/src/rabbit_queue_index.erl
+++ b/src/rabbit_queue_index.erl
@@ -505,7 +505,10 @@ queue_index_walker({start, DurableQueues}) when is_list(DurableQueues) ->
[begin
ok = gatherer:fork(Gatherer),
ok = worker_pool:submit_async(
- fun () -> queue_index_walker_reader(QueueName, Gatherer)
+ fun () -> link(Gatherer),
+ ok = queue_index_walker_reader(QueueName, Gatherer),
+ unlink(Gatherer),
+ ok
end)
end || QueueName <- DurableQueues],
queue_index_walker({next, Gatherer});