25
1
mirror of https://github.com/processone/ejabberd.git synced 2024-12-26 17:38:45 +01:00

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

This commit is contained in:
Badlop 2010-02-15 18:29:17 +01:00
parent a71b47ea27
commit ab0905ce56

View File

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