aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorJuraj Hlista <[email protected]>2017-02-11 16:41:07 +0000
committerJuraj Hlista <[email protected]>2017-02-11 16:41:07 +0000
commitace8b57ec6be7292f7b6c27fa8eabeb8fe1c716b (patch)
treeb24e0897b56ad0043e96656f9a605ab4ee8db08f /lib
parent47b4abf118e2dac88c5c2cbd531372cc217854ec (diff)
downloadotp-ace8b57ec6be7292f7b6c27fa8eabeb8fe1c716b.tar.gz
otp-ace8b57ec6be7292f7b6c27fa8eabeb8fe1c716b.tar.bz2
otp-ace8b57ec6be7292f7b6c27fa8eabeb8fe1c716b.zip
Fix function name
From camel case to snake case.
Diffstat (limited to 'lib')
-rw-r--r--lib/kernel/src/dist_ac.erl10
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/kernel/src/dist_ac.erl b/lib/kernel/src/dist_ac.erl
index 6c2fa0b6b1..e63c969b79 100644
--- a/lib/kernel/src/dist_ac.erl
+++ b/lib/kernel/src/dist_ac.erl
@@ -123,7 +123,7 @@ load_application(AppName, DistNodes) ->
gen_server:call(?DIST_AC, {load_application, AppName, DistNodes}, infinity).
takeover_application(AppName, RestartType) ->
- case validRestartType(RestartType) of
+ case valid_restart_type(RestartType) of
true ->
wait_for_sync_dacs(),
Nodes = get_nodes(AppName),
@@ -1514,10 +1514,10 @@ dist_del_node(Appls, Node) ->
Appl#appl{run = NRun}
end, Appls).
-validRestartType(permanent) -> true;
-validRestartType(temporary) -> true;
-validRestartType(transient) -> true;
-validRestartType(_RestartType) -> false.
+valid_restart_type(permanent) -> true;
+valid_restart_type(temporary) -> true;
+valid_restart_type(transient) -> true;
+valid_restart_type(_RestartType) -> false.
dist_mismatch(AppName, Node) ->
error_msg("Distribution mismatch for application \"~p\" on nodes ~p and ~p~n",