diff options
author | Christopher tofu Zorn <tofu@stanziq.com> | 2010-05-05 16:23:06 -0400 |
---|---|---|
committer | Badlop <badlop@process-one.net> | 2010-05-06 20:52:36 +0200 |
commit | 516d369174fc5ffc1ac8b5c472d52c795b985a1d (patch) | |
tree | 8b59f978a013b3ba40bee43c40eb0ba86d14495e /src/web/ejabberd_http_bind.erl | |
parent | enforce pubsub#presence_based_delivery (EJAB-1221) (thanks to Karim Gemayel) (diff) |
Use dirty_delete when removing the session.
There is no need for a transaction and has less overhead
Diffstat (limited to 'src/web/ejabberd_http_bind.erl')
-rw-r--r-- | src/web/ejabberd_http_bind.erl | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/web/ejabberd_http_bind.erl b/src/web/ejabberd_http_bind.erl index 11ee8418..b26cf5fc 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 -> |