mirror of
https://github.com/processone/ejabberd.git
synced 2024-12-26 17:38:45 +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
|
||||
{ok, Ref} ->
|
||||
erlang:monitor(process, Ref),
|
||||
lists:foreach(
|
||||
fun({{?PREPARE_KEY, _} = Key, _}) ->
|
||||
erase(Key);
|
||||
(_) ->
|
||||
ok
|
||||
end, get()),
|
||||
PendingRequests =
|
||||
p1_queue:dropwhile(
|
||||
fun(Req) ->
|
||||
|
Loading…
Reference in New Issue
Block a user