summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon MacMullen <simon@rabbitmq.com>2011-08-18 18:45:24 +0100
committerSimon MacMullen <simon@rabbitmq.com>2011-08-18 18:45:24 +0100
commit125abf0cce4a3aa3223cc3fc6aa4a4be1bbd2966 (patch)
tree0aa0eca74b48f8b652b7235188c8bd501fbd4004
parentcbe09896ffd9c29b6df1d8f1f810193fdec32bf3 (diff)
downloadrabbitmq-server-bug24230.tar.gz
Reverse the polarity, so that it is actually *right*, and make the nearby comment clearer.bug24230
-rw-r--r--src/mirrored_supervisor.erl9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/mirrored_supervisor.erl b/src/mirrored_supervisor.erl
index e273470f..8dfe39f8 100644
--- a/src/mirrored_supervisor.erl
+++ b/src/mirrored_supervisor.erl
@@ -311,9 +311,12 @@ init({overall, Group, Init}) ->
Mirroring = {mirroring, {?MODULE, start_internal,
[Group, ChildSpecs]},
permanent, 16#ffffffff, worker, [?MODULE]},
- %% Important: Delegate MUST start after Mirroring, see comment in
- %% handle_info('DOWN', ...) below
- {ok, {{one_for_all, 0, 1}, [Mirroring, Delegate]}};
+ %% Important: Delegate MUST start before Mirroring so that
+ %% when we shut down from above it shuts down last, so
+ %% Mirroring does not see it die.
+ %%
+ %% See comment in handle_info('DOWN', ...) below
+ {ok, {{one_for_all, 0, 1}, [Delegate, Mirroring]}};
ignore ->
ignore
end;