diff options
| author | Simon MacMullen <simon@rabbitmq.com> | 2011-07-01 14:32:41 +0100 |
|---|---|---|
| committer | Simon MacMullen <simon@rabbitmq.com> | 2011-07-01 14:32:41 +0100 |
| commit | 63f47c549062efef2f24aad2ff6e32b06d97fd86 (patch) | |
| tree | 52d8d4c366cfa6645a77134f6e12d124463c4d27 /src | |
| parent | 9d03b45aa466136cb9ffe9beb39bbd47b11f6240 (diff) | |
| download | rabbitmq-server-git-63f47c549062efef2f24aad2ff6e32b06d97fd86.tar.gz | |
Cosmetic
Diffstat (limited to 'src')
| -rw-r--r-- | src/mirrored_supervisor.erl | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mirrored_supervisor.erl b/src/mirrored_supervisor.erl index d129ea958d..b94b0144e0 100644 --- a/src/mirrored_supervisor.erl +++ b/src/mirrored_supervisor.erl @@ -148,7 +148,7 @@ handle_info({'DOWN', _Ref, process, Pid, _Reason}, Self = self(), case lists:sort(pg2_fixed:get_members(Group)) of [Self | _] -> {atomic, ChildSpecs} = - mnesia:transaction(fun() -> restart_all(Pid) end), + mnesia:transaction(fun() -> update_all(Pid) end), [begin start(Sup, ChildSpec), io:format("Restarted ~p~n", [id(ChildSpec)]) @@ -207,7 +207,7 @@ update(ChildSpec) -> write(ChildSpec), ChildSpec. -restart_all(OldPid) -> +update_all(OldPid) -> MatchHead = #mirrored_sup_childspec{sup_pid = OldPid, childspec = '$1', _ = '_'}, |
