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:
parent
a71b47ea27
commit
ab0905ce56
@ -91,7 +91,7 @@ register_route(Domain, LocalHint) ->
|
|||||||
mnesia:transaction(F);
|
mnesia:transaction(F);
|
||||||
N ->
|
N ->
|
||||||
F = fun() ->
|
F = fun() ->
|
||||||
case mnesia:read({route, LDomain}) of
|
case mnesia:wread({route, LDomain}) of
|
||||||
[] ->
|
[] ->
|
||||||
mnesia:write(
|
mnesia:write(
|
||||||
#route{domain = LDomain,
|
#route{domain = LDomain,
|
||||||
|
Loading…
Reference in New Issue
Block a user