From 8520b76483b81017a1297e273cccfa80de45b30e Mon Sep 17 00:00:00 2001 From: Evgeniy Khramtsov Date: Wed, 1 Dec 2010 14:24:51 +0900 Subject: [PATCH] Increase maximum restart strategy of the ODBC supervisor. Do not brutally kill ODBC processes on supervisor shutdown to avoid polution of the mnesia table --- src/odbc/ejabberd_odbc_sup.erl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/odbc/ejabberd_odbc_sup.erl b/src/odbc/ejabberd_odbc_sup.erl index ec567910e..ed855d715 100644 --- a/src/odbc/ejabberd_odbc_sup.erl +++ b/src/odbc/ejabberd_odbc_sup.erl @@ -89,13 +89,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))}}.