mirror of
https://github.com/processone/ejabberd.git
synced 2024-11-30 16:36:29 +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);
|
||||
N ->
|
||||
F = fun() ->
|
||||
case mnesia:read({route, LDomainB}) of
|
||||
case mnesia:wread({route, LDomainB}) of
|
||||
[] ->
|
||||
mnesia:write(
|
||||
#route{domain = LDomainB,
|
||||
|
Loading…
Reference in New Issue
Block a user