diff options
author | Evgeniy Khramtsov <ekhramtsov@process-one.net> | 2018-02-11 12:54:15 +0300 |
---|---|---|
committer | Evgeniy Khramtsov <ekhramtsov@process-one.net> | 2018-02-11 12:54:15 +0300 |
commit | 66fc1bf3b6cab63559fa58a086a1439ecdebfea7 (patch) | |
tree | cdc0ce2d21249f31060a1c302e4708abc507d10e /tools/hook_deps.sh | |
parent | Bump xmpp version (diff) |
Remove 'iqdisc' option
Since we got rid of all bottle-neck processes and we have
a connection pool for every database, the option is no longer
needed and in fact is detrimental: in practice what you get
is just a bunch of overloaded processes in the IQ handlers pool
no matter how much you increase the `iqdisc` value.
Given that there are close to zero operators understanding
the meaning of the option and, hence, not using it all,
it's not simply deprecated but completely removed.
The commit also deprecates the following functions:
- gen_iq_handler:add_iq_handler/6
- gen_iq_handler:handle/5
- gen_iq_handler:iqdisc/1
Diffstat (limited to 'tools/hook_deps.sh')
-rwxr-xr-x | tools/hook_deps.sh | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/tools/hook_deps.sh b/tools/hook_deps.sh index a3a685a2..633bb3b4 100755 --- a/tools/hook_deps.sh +++ b/tools/hook_deps.sh @@ -34,7 +34,8 @@ main([Dir]) -> {ejabberd_hooks, {add, N}} when N == 4; N == 5 -> analyze_run_fun(Form, Acc); - {gen_iq_handler, {add_iq_handler, 6}} -> + {gen_iq_handler, {add_iq_handler, N}} + when N == 5; N == 6 -> analyze_iq_handler(Form, Acc); _ -> Acc @@ -136,7 +137,7 @@ analyze_run_fun(Form, State) -> end. analyze_iq_handler(Form, State) -> - [_Component, _Host, _NS, Module, Function, _IQDisc] = + [_Component, _Host, _NS, Module, Function|_] = erl_syntax:application_arguments(Form), Mod = module_name(Module, State), Fun = atom_value(Function, State), |