mirror of
https://github.com/processone/ejabberd.git
synced 2024-11-22 16:20:52 +01:00
Fix cleaning of Riak route table
This commit is contained in:
parent
da66eb5714
commit
598c79ff86
@ -74,8 +74,8 @@ clean_table() ->
|
||||
case ejabberd_riak:get(route, route_schema()) of
|
||||
{ok, Routes} ->
|
||||
lists:foreach(
|
||||
fun(#route{pid = Pid}) ->
|
||||
ejabberd_riak:delete(route, Pid)
|
||||
fun(#route{domain = Domain, pid = Pid}) ->
|
||||
ejabberd_riak:delete(route, {Domain, Pid})
|
||||
end, Routes);
|
||||
{error, Err} ->
|
||||
?ERROR_MSG("failed to clean Riak 'route' table: ~p", [Err]),
|
||||
|
Loading…
Reference in New Issue
Block a user