From de1a66dfbef0ae3f24dfff59d94b0d2b7c58314d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pawe=C5=82=20Dorofiejczyk?= Date: Mon, 17 Jul 2017 15:14:30 +0200 Subject: [PATCH] Fix old route record in mnesia's route table haven't been remove when restarting in some cases (#1184) --- src/ejabberd_router_mnesia.erl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ejabberd_router_mnesia.erl b/src/ejabberd_router_mnesia.erl index 76336d0b0..d84f7a609 100644 --- a/src/ejabberd_router_mnesia.erl +++ b/src/ejabberd_router_mnesia.erl @@ -149,7 +149,7 @@ init([]) -> lists:foreach( fun (Pid) -> erlang:monitor(process, Pid) end, mnesia:dirty_select(route, - [{{route, '_', '$1', '_'}, [], ['$1']}])), + [{#route{pid = '$1', _ = '_'}, [], ['$1']}])), {ok, #state{}}. handle_call(_Request, _From, State) ->