25
1
mirror of https://github.com/processone/ejabberd.git synced 2024-11-30 16:36:29 +01:00

now using mnesia:async_dirty when cleaning table from failed node

This commit is contained in:
Evgeniy Khramtsov 2010-02-19 16:41:13 +09:00
parent ca1ac76108
commit 62ad40b1e4
2 changed files with 3 additions and 3 deletions

View File

@ -275,7 +275,7 @@ clean_table_from_bad_node(Node) ->
mnesia:delete_object(E)
end, Es)
end,
mnesia:transaction(F).
mnesia:async_dirty(F).
do_route(From, To, Packet) ->
?DEBUG("s2s manager~n\tfrom ~p~n\tto ~p~n\tpacket ~P~n",

View File

@ -867,7 +867,7 @@ clean_table_from_bad_node(Node) ->
mnesia:delete_object(E)
end, Es)
end,
mnesia:transaction(F).
mnesia:async_dirty(F).
clean_table_from_bad_node(Node, Host) ->
F = fun() ->
@ -882,7 +882,7 @@ clean_table_from_bad_node(Node, Host) ->
mnesia:delete_object(E)
end, Es)
end,
mnesia:transaction(F).
mnesia:async_dirty(F).
update_tables(Host) ->
update_muc_room_table(Host),