From 516d369174fc5ffc1ac8b5c472d52c795b985a1d Mon Sep 17 00:00:00 2001 From: Christopher tofu Zorn Date: Wed, 5 May 2010 16:23:06 -0400 Subject: [PATCH] Use dirty_delete when removing the session. There is no need for a transaction and has less overhead --- src/web/ejabberd_http_bind.erl | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/web/ejabberd_http_bind.erl b/src/web/ejabberd_http_bind.erl index 11ee84182..b26cf5fc0 100644 --- a/src/web/ejabberd_http_bind.erl +++ b/src/web/ejabberd_http_bind.erl @@ -523,10 +523,7 @@ handle_info(_, StateName, StateData) -> %%---------------------------------------------------------------------- terminate(_Reason, _StateName, StateData) -> ?DEBUG("terminate: Deleting session ~s", [StateData#state.id]), - mnesia:transaction( - fun() -> - mnesia:delete({http_bind, StateData#state.id}) - end), + mnesia:dirty_delete({http_bind, StateData#state.id}), send_receiver_reply(StateData#state.http_receiver, {ok, terminate}), case StateData#state.waiting_input of false ->