YUKI Hiroshi
null+****@clear*****
Fri Aug 29 11:31:21 JST 2014
YUKI Hiroshi 2014-08-29 11:31:21 +0900 (Fri, 29 Aug 2014) New Revision: e05c40eaa6c3cb5501da99526a5086ec687dd534 https://github.com/long-long-float/droonga-engine/commit/e05c40eaa6c3cb5501da99526a5086ec687dd534 Message: Output more logs for debugging Modified files: lib/droonga/command/remote.rb Modified: lib/droonga/command/remote.rb (+5 -3) =================================================================== --- lib/droonga/command/remote.rb 2014-08-29 10:52:17 +0900 (679a3eb) +++ lib/droonga/command/remote.rb 2014-08-29 11:31:21 +0900 (fd54bd6) @@ -37,6 +37,8 @@ module Droonga "log" => [] } @serf = Serf.new(nil, @serf_name) + + log("params = #{params}") end def process @@ -155,9 +157,10 @@ module Droonga def join_as_replica return unless valid_params? - log("source_node = #{source_node}") + log("source_node = #{source_node}") other_hosts = replica_hosts + log("other_hosts = #{other_hosts}") return if other_hosts.empty? # restart self with the fetched catalog. @@ -306,9 +309,8 @@ module Droonga return if dataset.nil? or hosts.nil? added_hosts = hosts - [host] - return if added_hosts.empty? - log("adding replicas: #{added_hosts.join(",")}") + return if added_hosts.empty? CatalogModifier.modify do |modifier| modifier.datasets[dataset].replicas.hosts += added_hosts -------------- next part -------------- HTML����������������������������...Download