Navigation Menu

Skip to content

Commit

Permalink
Do nothing if the role of the node is same to the given one
Browse files Browse the repository at this point in the history
  • Loading branch information
piroor committed Apr 22, 2015
1 parent 5b08670 commit c80d50d
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions bin/droonga-engine-set-role
Expand Up @@ -27,6 +27,11 @@ module Droonga
:required => true)
end

if serf.role == @options[:role]
puts "Role of #{node.to_s} is #{@options[:role]}. Nothing to do."
return true
end

puts "Setting role of #{node.to_s} to #{@options[:role]}..."
succeeded = set_node_role

Expand Down

0 comments on commit c80d50d

Please sign in to comment.