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:
parent
ca1ac76108
commit
62ad40b1e4
@ -275,7 +275,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",
|
||||||
|
@ -867,7 +867,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() ->
|
||||||
@ -882,7 +882,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),
|
||||||
|
Loading…
Reference in New Issue
Block a user