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
1 changed files with 1 additions and 1 deletions

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,