Skip to content

Commit

Permalink
Don't process join command if the node has been a member.
Browse files Browse the repository at this point in the history
  • Loading branch information
piroor committed Jun 28, 2014
1 parent 64e3392 commit 5448fea
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions bin/droonga-engine-join
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,11 @@ unless dataset
"--replica-source-host option."
end

if generator.dataset_for_host(options.joining_host)
raise "The joining node is already a member of the cluster. " +
"You cannot join a member twice."
end

options.tag = dataset.tag
options.port = dataset.port

Expand Down

0 comments on commit 5448fea

Please sign in to comment.