mirror of
https://github.com/processone/ejabberd.git
synced 2024-11-26 16:26:24 +01:00
Fix cluster race condition in route read (thanks to Alexey Shchepin)
This commit is contained in:
parent
df2878739c
commit
fa4ebab036
@ -101,7 +101,7 @@ register_route(Domain, LocalHint) ->
|
|||||||
mnesia:transaction(F);
|
mnesia:transaction(F);
|
||||||
N ->
|
N ->
|
||||||
F = fun() ->
|
F = fun() ->
|
||||||
case mnesia:read({route, LDomainB}) of
|
case mnesia:wread({route, LDomainB}) of
|
||||||
[] ->
|
[] ->
|
||||||
mnesia:write(
|
mnesia:write(
|
||||||
#route{domain = LDomainB,
|
#route{domain = LDomainB,
|
||||||
|
Loading…
Reference in New Issue
Block a user