25
1
mirror of https://github.com/processone/ejabberd.git synced 2024-11-28 16:34:13 +01:00

Fix old route record in mnesia's route table haven't been remove when restarting in some cases (#1184)

This commit is contained in:
Paweł Dorofiejczyk 2017-07-17 15:14:30 +02:00
parent 2cd193f97c
commit de1a66dfbe

View File

@ -149,7 +149,7 @@ init([]) ->
lists:foreach( lists:foreach(
fun (Pid) -> erlang:monitor(process, Pid) end, fun (Pid) -> erlang:monitor(process, Pid) end,
mnesia:dirty_select(route, mnesia:dirty_select(route,
[{{route, '_', '$1', '_'}, [], ['$1']}])), [{#route{pid = '$1', _ = '_'}, [], ['$1']}])),
{ok, #state{}}. {ok, #state{}}.
handle_call(_Request, _From, State) -> handle_call(_Request, _From, State) ->