summaryrefslogtreecommitdiff
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
commitb73cb8ac3a9cfbdb46f5a680ef8a37634ddeac63 (patch)
tree74dfd24fd53daf23904bdaa9b1af7d61be30fb34
parentcebeff693c6d5f48dc4e94197e7808236d99d21d (diff)
downloadrabbitmq-server-bug24392.tar.gz
ensure that rabbit dies when recovery failsbug24392
rather than just sitting there
-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 d729a7ed..f03c1d1c 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});