diff options
| author | Simon MacMullen <simon@rabbitmq.com> | 2011-08-18 18:45:24 +0100 |
|---|---|---|
| committer | Simon MacMullen <simon@rabbitmq.com> | 2011-08-18 18:45:24 +0100 |
| commit | 289ef6379284b5c02566741e1309bee5e5276507 (patch) | |
| tree | 0aa0eca74b48f8b652b7235188c8bd501fbd4004 /src | |
| parent | 80e4fe0ecf1e354e56ebf787de0125bb335f5f8a (diff) | |
| download | rabbitmq-server-git-289ef6379284b5c02566741e1309bee5e5276507.tar.gz | |
Reverse the polarity, so that it is actually *right*, and make the nearby comment clearer.
Diffstat (limited to 'src')
| -rw-r--r-- | src/mirrored_supervisor.erl | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/mirrored_supervisor.erl b/src/mirrored_supervisor.erl index e273470fd9..8dfe39f890 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; |
