]> granicus.if.org Git - ejabberd/commitdiff
* src/ejabberd_sm.erl: Remove unnecessary use delete_object,
authorMickaël Rémond <mickael.remond@process-one.net>
Thu, 16 Mar 2006 09:59:45 +0000 (09:59 +0000)
committerMickaël Rémond <mickael.remond@process-one.net>
Thu, 16 Mar 2006 09:59:45 +0000 (09:59 +0000)
which can, in some context break indexes, when used on non bag table.

SVN Revision: 519

ChangeLog
src/ejabberd_sm.erl

index 00b097e04dc84a02c59b17de1c56fc9b9d000a41..df6e57981f80a77382b623211d45bafa823e6194 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2006-03-16  Mickael Remond  <mickael.remond@process-one.net>
+
+       * src/ejabberd_sm.erl: Remove unnecessary use delete_object, which can,
+       in some context break indexes, when used on non bag table.
+
 2006-03-16  Alexey Shchepin  <alexey@sevcom.net>
 
        * src/ejabberd_c2s.erl: Bugfix
index 46880d013998e88399085fbe6516590c00bdcf2b..cd4bc6c6d45067a2dbcc30e592961b1759195e56 100644 (file)
@@ -290,7 +290,7 @@ clean_table_from_bad_node(Node) ->
                         [{'==', {node, '$1'}, Node}],
                         ['$_']}]),
                lists:foreach(fun(E) ->
-                                     mnesia:delete_object(E)
+                                     mnesia:delete({session, E#session.sid})
                              end, Es)
         end,
     mnesia:sync_dirty(F).