mirror of
https://github.com/valitydev/riak_test.git
synced 2024-11-07 00:55:21 +00:00
Unregister the Pid for the interceptor leader before reregistering it
This commit is contained in:
parent
2151fa6914
commit
17b5ac8f80
@ -16,6 +16,7 @@ leader_server(Node) ->
|
||||
|
||||
set_leader_node(Node) ->
|
||||
LeaderPid = spawn(?MODULE, leader_server, [Node]),
|
||||
global:unregister_name(?NODE_KEY),
|
||||
global:register_name(?NODE_KEY, LeaderPid).
|
||||
|
||||
set_leader_node(LocalPid, LeaderNode, LeaderPid) ->
|
||||
|
Loading…
Reference in New Issue
Block a user