mirror of
https://github.com/processone/ejabberd.git
synced 2024-11-28 16:34:13 +01:00
Forget prepared SQL queries on database connect (#1325)
This commit is contained in:
parent
b75780b9cd
commit
f45dc46856
@ -301,6 +301,12 @@ connecting(connect, #state{host = Host} = State) ->
|
|||||||
case ConnectRes of
|
case ConnectRes of
|
||||||
{ok, Ref} ->
|
{ok, Ref} ->
|
||||||
erlang:monitor(process, Ref),
|
erlang:monitor(process, Ref),
|
||||||
|
lists:foreach(
|
||||||
|
fun({{?PREPARE_KEY, _} = Key, _}) ->
|
||||||
|
erase(Key);
|
||||||
|
(_) ->
|
||||||
|
ok
|
||||||
|
end, get()),
|
||||||
PendingRequests =
|
PendingRequests =
|
||||||
p1_queue:dropwhile(
|
p1_queue:dropwhile(
|
||||||
fun(Req) ->
|
fun(Req) ->
|
||||||
|
Loading…
Reference in New Issue
Block a user