diff options
author | Matthias Radestock <matthias@rabbitmq.com> | 2011-11-29 11:42:56 +0000 |
---|---|---|
committer | Matthias Radestock <matthias@rabbitmq.com> | 2011-11-29 11:42:56 +0000 |
commit | b73cb8ac3a9cfbdb46f5a680ef8a37634ddeac63 (patch) | |
tree | 74dfd24fd53daf23904bdaa9b1af7d61be30fb34 | |
parent | cebeff693c6d5f48dc4e94197e7808236d99d21d (diff) | |
download | rabbitmq-server-bug24392.tar.gz |
ensure that rabbit dies when recovery failsbug24392
rather than just sitting there
-rw-r--r-- | src/rabbit_queue_index.erl | 5 |
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}); |