mirror of
https://github.com/processone/ejabberd.git
synced 2024-12-26 17:38:45 +01:00
Get rid of useless mnesia transaction (EJAB-1502)
This commit is contained in:
parent
c1d479f863
commit
96800e9b75
@ -283,9 +283,7 @@ handle_session_start(Pid, XmppDomain, Sid, Rid, Attrs,
|
||||
end,
|
||||
XmppVersion = xml:get_attr_s("xmpp:version", Attrs),
|
||||
?DEBUG("Create session: ~p", [Sid]),
|
||||
mnesia:transaction(
|
||||
fun() ->
|
||||
mnesia:write(
|
||||
mnesia:dirty_write(
|
||||
#http_bind{id = Sid,
|
||||
pid = Pid,
|
||||
to = {XmppDomain,
|
||||
@ -294,8 +292,7 @@ handle_session_start(Pid, XmppDomain, Sid, Rid, Attrs,
|
||||
wait = Wait,
|
||||
process_delay = Pdelay,
|
||||
version = Version
|
||||
})
|
||||
end),
|
||||
}),
|
||||
handle_http_put(Sid, Rid, Attrs, Payload, PayloadSize, true, IP).
|
||||
|
||||
%%%----------------------------------------------------------------------
|
||||
|
Loading…
Reference in New Issue
Block a user