mirror of
https://github.com/processone/ejabberd.git
synced 2024-11-26 16:26:24 +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:
parent
b8f04aae6f
commit
8520b76483
@ -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))}}.
|
||||||
|
Loading…
Reference in New Issue
Block a user