24
1
mirror of https://github.com/processone/ejabberd.git synced 2024-06-02 21:17:12 +02:00

Fix cluster race condition in route read (thanks to Alexey Shchepin)

This commit is contained in:
Badlop 2010-02-15 18:37:42 +01:00
parent df2878739c
commit fa4ebab036

View File

@ -101,7 +101,7 @@ register_route(Domain, LocalHint) ->
mnesia:transaction(F);
N ->
F = fun() ->
case mnesia:read({route, LDomainB}) of
case mnesia:wread({route, LDomainB}) of
[] ->
mnesia:write(
#route{domain = LDomainB,