mirror of
https://github.com/processone/ejabberd.git
synced 2024-11-26 16:26:24 +01:00
Merge 2425 from trunk: fix keepalive query, broken by r2092.
SVN Revision: 2435
This commit is contained in:
parent
6aa4bb9f08
commit
9a204593e1
@ -469,7 +469,8 @@ mysql_item_to_odbc(Columns, Recs) ->
|
|||||||
|
|
||||||
% perform a harmless query on all opened connexions to avoid connexion close.
|
% perform a harmless query on all opened connexions to avoid connexion close.
|
||||||
keep_alive(PID) ->
|
keep_alive(PID) ->
|
||||||
gen_server:call(PID, {sql_query, ?KEEPALIVE_QUERY}, ?KEEPALIVE_TIMEOUT).
|
gen_server:call(PID, {sql_cmd, {sql_query, ?KEEPALIVE_QUERY}},
|
||||||
|
?KEEPALIVE_TIMEOUT).
|
||||||
|
|
||||||
% log function used by MySQL driver
|
% log function used by MySQL driver
|
||||||
log(Level, Format, Args) ->
|
log(Level, Format, Args) ->
|
||||||
|
Loading…
Reference in New Issue
Block a user