From: Mickaël Rémond Date: Thu, 16 Mar 2006 09:59:45 +0000 (+0000) Subject: * src/ejabberd_sm.erl: Remove unnecessary use delete_object, X-Git-Tag: v1.1.0~34 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=eabf8d1c6c65534b524f5709a72aa32d7e1fcf77;p=ejabberd * src/ejabberd_sm.erl: Remove unnecessary use delete_object, which can, in some context break indexes, when used on non bag table. SVN Revision: 519 --- diff --git a/ChangeLog b/ChangeLog index 00b097e04..df6e57981 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2006-03-16 Mickael Remond + + * 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 * src/ejabberd_c2s.erl: Bugfix diff --git a/src/ejabberd_sm.erl b/src/ejabberd_sm.erl index 46880d013..cd4bc6c6d 100644 --- a/src/ejabberd_sm.erl +++ b/src/ejabberd_sm.erl @@ -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).