summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorSimon MacMullen <simon@rabbitmq.com>2011-07-18 16:46:04 +0100
committerSimon MacMullen <simon@rabbitmq.com>2011-07-18 16:46:04 +0100
commite5c5f6dd3ec7f2dc6acc374a76cf702e4667d676 (patch)
treeb0ab493f3dcf0b57344f6e21385ce903d351baad /src
parent2bd44a15bab74e2167820a676e71943826cb1530 (diff)
downloadrabbitmq-server-git-e5c5f6dd3ec7f2dc6acc374a76cf702e4667d676.tar.gz
It might not be 'killed'. And we should return an error here.
Diffstat (limited to 'src')
-rw-r--r--src/mirrored_supervisor.erl6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/mirrored_supervisor.erl b/src/mirrored_supervisor.erl
index 344f6ec286..afd855ed37 100644
--- a/src/mirrored_supervisor.erl
+++ b/src/mirrored_supervisor.erl
@@ -392,10 +392,10 @@ demonitor_all_peers(#state{peer_monitors = Peers}) ->
maybe_start(Delegate, ChildSpec) ->
case mnesia:transaction(fun() -> check_start(Delegate, ChildSpec) end) of
- {atomic, start} -> start(Delegate, ChildSpec);
- {atomic, Pid} -> {already_started, Pid};
+ {atomic, start} -> start(Delegate, ChildSpec);
+ {atomic, Pid} -> {already_started, Pid};
%% If we are torn down while in the transaction...
- {aborted, {killed, _}} -> ignore
+ {aborted, E} -> {error, E}
end.
check_start(Delegate, ChildSpec) ->