Piro / YUKI Hiroshi
null+****@clear*****
Thu Apr 23 01:54:24 JST 2015
Piro / YUKI Hiroshi 2015-04-23 01:54:24 +0900 (Thu, 23 Apr 2015) New Revision: c80d50d351bb675c6ad21eef0819b483f4898e25 https://github.com/droonga/droonga-engine/commit/c80d50d351bb675c6ad21eef0819b483f4898e25 Message: Do nothing if the role of the node is same to the given one Modified files: bin/droonga-engine-set-role Modified: bin/droonga-engine-set-role (+5 -0) =================================================================== --- bin/droonga-engine-set-role 2015-04-22 21:41:58 +0900 (bff83f5) +++ bin/droonga-engine-set-role 2015-04-23 01:54:24 +0900 (7f1d1c7) @@ -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 -------------- next part -------------- HTML����������������������������...Download