summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthew Sackman <matthew@lshift.net>2009-12-19 16:36:06 +0000
committerMatthew Sackman <matthew@lshift.net>2009-12-19 16:36:06 +0000
commitb02a20b6d2e91035d2941c40b5cfb0f15d1b6a83 (patch)
tree0b4c4dc448ea04af231a51052c856494f5cb0f58
parent54e4214d39335982d23d7165c2a2696e7db19a81 (diff)
downloadrabbitmq-server-b02a20b6d2e91035d2941c40b5cfb0f15d1b6a83.tar.gz
msg_store traps exits, and so it should have a handle_info clause to catch that
-rw-r--r--src/rabbit_msg_store.erl5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/rabbit_msg_store.erl b/src/rabbit_msg_store.erl
index 0702cf36..f139fc45 100644
--- a/src/rabbit_msg_store.erl
+++ b/src/rabbit_msg_store.erl
@@ -426,7 +426,10 @@ handle_info(timeout, State) ->
handle_info({file_handle_cache, maximum_eldest_since_use, Age}, State) ->
ok = file_handle_cache:set_maximum_since_use(Age),
- noreply(State).
+ noreply(State);
+
+handle_info({'EXIT', _Pid, Reason}, State) ->
+ {stop, Reason, State}.
terminate(_Reason, State = #msstate { msg_locations = MsgLocations,
file_summary = FileSummary,