YUKI Hiroshi
null+****@clear*****
Fri Nov 21 13:05:47 JST 2014
YUKI Hiroshi 2014-11-21 13:05:47 +0900 (Fri, 21 Nov 2014) New Revision: ff5ae763a6faf53b8fa29e52ac713399f4ea0d32 https://github.com/droonga/droonga-engine/commit/ff5ae763a6faf53b8fa29e52ac713399f4ea0d32 Message: Make the remote command to set node status generic Modified files: lib/droonga/command/remote.rb lib/droonga/command/serf_event_handler.rb Modified: lib/droonga/command/remote.rb (+2 -2) =================================================================== --- lib/droonga/command/remote.rb 2014-11-21 12:37:57 +0900 (6b29713) +++ lib/droonga/command/remote.rb 2014-11-21 13:05:47 +0900 (136195f) @@ -89,10 +89,10 @@ module Droonga end end - class SetEffectiveMessageTimestamp < Base + class SetStatus < Base def process status = NodeStatus.new - status.set(:effective_message_timestamp, @params["timestamp"]) + status.set(@params["key"], @params["value"]) end end Modified: lib/droonga/command/serf_event_handler.rb (+2 -2) =================================================================== --- lib/droonga/command/serf_event_handler.rb 2014-11-21 12:37:57 +0900 (bda30cf) +++ lib/droonga/command/serf_event_handler.rb 2014-11-21 13:05:47 +0900 (5fcb6bf) @@ -72,8 +72,8 @@ module Droonga Remote::ChangeRole when "report_status" Remote::ReportStatus - when "set_effective_message_timestamp" - Remote::SetEffectiveMessageTimestamp + when "set_status" + Remote::SetStatus when "join" Remote::Join when "set_replicas" -------------- next part -------------- HTML����������������������������... Download