25
1
mirror of https://github.com/processone/ejabberd.git synced 2024-11-22 16:20:52 +01:00

Increase maximum restart strategy of the ODBC supervisor. Do not brutally kill ODBC processes on supervisor shutdown to avoid polution of the mnesia table

This commit is contained in:
Evgeniy Khramtsov 2010-12-01 14:24:51 +09:00
parent b8f04aae6f
commit 8520b76483

View File

@ -89,13 +89,13 @@ init([Host]) ->
?DEFAULT_ODBC_START_INTERVAL]), ?DEFAULT_ODBC_START_INTERVAL]),
?DEFAULT_ODBC_START_INTERVAL ?DEFAULT_ODBC_START_INTERVAL
end, end,
{ok, {{one_for_one, PoolSize*2, 1}, {ok, {{one_for_one, PoolSize*10, 1},
lists:map( lists:map(
fun(I) -> fun(I) ->
{I, {I,
{ejabberd_odbc, start_link, [Host, StartInterval*1000]}, {ejabberd_odbc, start_link, [Host, StartInterval*1000]},
transient, transient,
brutal_kill, 2000,
worker, worker,
[?MODULE]} [?MODULE]}
end, lists:seq(1, PoolSize))}}. end, lists:seq(1, PoolSize))}}.