25
1
mirror of https://github.com/processone/ejabberd.git synced 2024-12-26 17:38:45 +01:00

now using mnesia:async_dirty when cleaning table from failed node

This commit is contained in:
Evgeniy Khramtsov 2010-02-19 16:38:18 +09:00
parent 4a7a33168a
commit e569087d83
2 changed files with 3 additions and 3 deletions

View File

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

View File

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