YUKI Hiroshi
null+****@clear*****
Wed Aug 27 18:44:20 JST 2014
YUKI Hiroshi 2014-08-27 18:44:20 +0900 (Wed, 27 Aug 2014) New Revision: 139a05fad897281eec817b07d91c4931432ea585 https://github.com/long-long-float/droonga-engine/commit/139a05fad897281eec817b07d91c4931432ea585 Message: Remove duplicated parameter Modified files: lib/droonga/command/serf_event_handler.rb Modified: lib/droonga/command/serf_event_handler.rb (+3 -5) =================================================================== --- lib/droonga/command/serf_event_handler.rb 2014-08-27 18:39:06 +0900 (6d42b19) +++ lib/droonga/command/serf_event_handler.rb 2014-08-27 18:44:20 +0900 (32830e0) @@ -129,16 +129,14 @@ module Droonga def join_as_replica source_node = @payload["source"] source_node_port = @payload["port"] - source_node_dataset = @payload["dataset"] joining_node = @payload["node"] tag = @payload["tag"] - dataset = @payload["dataset"] + dataset_name = @payload["dataset"] required_params = [ source_node, source_node_port, - source_node_dataset, joining_node, - dataset, + dataset_name, ] return unless required_params.all? @@ -147,7 +145,7 @@ module Droonga source_host = source_node.split(":").first joining_host = joining_node.split(":").first - catalog = CatalogFetcher.fetch(:dataset => source_node_dataset, + catalog = CatalogFetcher.fetch(:dataset => dataset_name, :host => source_host, :port => source_node_port, :tag => tag, -------------- next part -------------- HTML����������������������������... Télécharger