]> granicus.if.org Git - ejabberd/commitdiff
now using mnesia:async_dirty when cleaning table from failed node
authorEvgeniy Khramtsov <ekhramtsov@process-one.net>
Fri, 19 Feb 2010 07:38:18 +0000 (16:38 +0900)
committerEvgeniy Khramtsov <ekhramtsov@process-one.net>
Fri, 19 Feb 2010 07:38:18 +0000 (16:38 +0900)
src/ejabberd_s2s.erl
src/mod_muc/mod_muc.erl

index a5c087819906af750abb64970acac3f4150ad1a1..8ab520f56e59f93d2d8308e5f04c03291466e97b 100644 (file)
@@ -245,7 +245,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",
index 41eae9dd5bd50142c2a8a09ca4294b26358470ed..9b6f797f12a557fe0582daa38bc984b57ff8d37e 100644 (file)
@@ -833,7 +833,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() ->
@@ -848,7 +848,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),