diff options
author | Siri Hansen <[email protected]> | 2013-04-25 16:14:10 +0200 |
---|---|---|
committer | Hans Bolinder <[email protected]> | 2013-05-06 12:14:13 +0200 |
commit | f52452309cf68da898a1768eb6e8b6767e602bc7 (patch) | |
tree | c24a32ecedfd7f4baaa3c8f4e9e474a7dbef738b /lib/kernel/src/dist_ac.erl | |
parent | 88eea0e9a22099a1425553381cfb72f646cb2abf (diff) | |
download | otp-f52452309cf68da898a1768eb6e8b6767e602bc7.tar.gz otp-f52452309cf68da898a1768eb6e8b6767e602bc7.tar.bz2 otp-f52452309cf68da898a1768eb6e8b6767e602bc7.zip |
Fix unmatched_return warnings in kernel
Diffstat (limited to 'lib/kernel/src/dist_ac.erl')
-rw-r--r-- | lib/kernel/src/dist_ac.erl | 32 |
1 files changed, 16 insertions, 16 deletions
diff --git a/lib/kernel/src/dist_ac.erl b/lib/kernel/src/dist_ac.erl index 98b9e20007..a4d4ae386c 100644 --- a/lib/kernel/src/dist_ac.erl +++ b/lib/kernel/src/dist_ac.erl @@ -283,7 +283,7 @@ handle_cast(init_sync, _S) -> KernelConfig ! dist_ac_took_control, %% we're really just interested in nodedowns. - net_kernel:monitor_nodes(true), + ok = net_kernel:monitor_nodes(true), {Known, NAppls, RStarted} = sync_dacs(Appls), @@ -812,21 +812,21 @@ start_appl(AppName, S, Type) -> start_distributed(Appl, Name, Nodes, PermittedNodes, S, Type) -> case find_start_node(Nodes, PermittedNodes, Name, S) of {ok, Node} when Node =:= node() -> - case Appl#appl.id of - {failover, FoNode} when Type =:= req -> - _ = ac_failover(Name, FoNode, undefined); - {distributed, Node2} when Type =:= req -> - _ = ac_takeover(req, Name, Node2, undefined); - _ when Type =:= reply -> - case lists:keysearch(Name, 2, S#state.remote_started) of - {value, {Node3, _}} -> - _ = ac_takeover(reply, Name, Node3, undefined); - _ -> - _ = ac_start_it(Type, Name) - end; - _ -> - _ = ac_start_it(Type, Name) - end, + _ = case Appl#appl.id of + {failover, FoNode} when Type =:= req -> + ac_failover(Name, FoNode, undefined); + {distributed, Node2} when Type =:= req -> + ac_takeover(req, Name, Node2, undefined); + _ when Type =:= reply -> + case lists:keysearch(Name, 2, S#state.remote_started) of + {value, {Node3, _}} -> + ac_takeover(reply, Name, Node3, undefined); + _ -> + ac_start_it(Type, Name) + end; + _ -> + ac_start_it(Type, Name) + end, {run_waiting, true}; {already_started, Node} -> _ = ac_started(Type, Name, Node), |