diff options
author | Mike Wallace <mikewallace1979@googlemail.com> | 2014-08-19 15:19:57 +0100 |
---|---|---|
committer | Jay Doane <jaydoane@apache.org> | 2021-04-19 00:34:24 -0700 |
commit | f3514c7b2fdfbd93dfad27bd7e56db9a04677652 (patch) | |
tree | 1a783b8c3d7a526d936d4ff8765508a2d060ff4f | |
parent | 90d0691f6ee26cfd2567c1a12fe0de21f46e383c (diff) | |
download | couchdb-f3514c7b2fdfbd93dfad27bd7e56db9a04677652.tar.gz |
Remove weatherreport_node:cluster_command funs
Remove unused cluster_command functions from the
weatherreport_node module.
-rw-r--r-- | src/weatherreport/src/weatherreport_node.erl | 30 |
1 files changed, 0 insertions, 30 deletions
diff --git a/src/weatherreport/src/weatherreport_node.erl b/src/weatherreport/src/weatherreport_node.erl index 2cd0f0103..a12f93d0c 100644 --- a/src/weatherreport/src/weatherreport_node.erl +++ b/src/weatherreport/src/weatherreport_node.erl @@ -37,9 +37,6 @@ local_command/2, local_command/3, local_command/4, - cluster_command/2, - cluster_command/3, - cluster_command/4, nodename/0 ]). @@ -86,33 +83,6 @@ local_command(Module, Function, Args, Timeout) -> rpc:call(nodename(), Module, Function, Args, Timeout) end. -%% @doc Calls the given 0-arity module and function on all members of -%% the cluster. -%% @equiv cluster_command(Module, Function, []) -%% @see can_connect/0 --spec cluster_command(Module::atom(), Function::atom()) -> term(). -cluster_command(Module, Function) -> - cluster_command(Module, Function, []). - -%% @doc Calls the given module and function with the given arguments -%% on all members of the cluster. -%% @equiv cluster_command(Module, Function, Args, 5000) -%% @see can_connect/0 --spec cluster_command(Module::atom(), Function::atom(), Args::[term()]) -> term(). -cluster_command(Module, Function, Args) -> - cluster_command(Module, Function, Args, 5000). - -%% @doc Calls the given module and function with the given arguments -%% on all members for the cluster, returning an error if the call -%% doesn't complete within the given timeout. -%% @equiv rpc:multicall(ClusterMembers, Module, Function, Args, Timeout) -%% @see can_connect/0 --spec cluster_command(Module::atom(), Function::atom(), Args::[term()], Timeout::integer()) -> term(). -cluster_command(Module, Function, Args, Timeout) -> - weatherreport_util:log(debug, "Cluster RPC: ~p:~p(~p) [~p]", [Module, Function, Args, Timeout]), - Members = local_command(mem3, nodes, []), - rpc:multicall(Members, Module, Function, Args, Timeout). - %% @doc Retrieves the operating system's process ID of the local %% node. %% @equiv local_command(os, getpid) |