25
1
mirror of https://github.com/processone/ejabberd.git synced 2024-11-20 16:15:59 +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 955343f6aa
commit 731c9b86e0

View File

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