Skip to content
This repository has been archived by the owner on Apr 4, 2022. It is now read-only.

Commit

Permalink
Ensure membership is recomputed.
Browse files Browse the repository at this point in the history
Ensure that membership locally, at the node coordinating the join
command, is updated.  Otherwise, if not, this node will show a set of
peers that will never be incorporated into the broadcast modules
spanning tree.  Therefore, anti-entropy exchanges will never occur
because the eager and lazy set will contain no peers.
  • Loading branch information
cmeiklejohn committed Feb 24, 2016
1 parent 1c1fec6 commit 33f9df4
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/plumtree_peer_service.erl
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ attempt_join(Node, Local) ->
{ok, Remote} = gen_server:call({plumtree_peer_service_gossip, Node}, send_state),
Merged = ?SET:merge(Remote, Local),
_ = plumtree_peer_service_manager:update_state(Merged),
plumtree_peer_service_events:update(Merged),
%% broadcast to all nodes
%% get peer list
Members = ?SET:value(Merged),
Expand Down

0 comments on commit 33f9df4

Please sign in to comment.