YUKI Hiroshi
null+****@clear*****
Tue Mar 24 13:01:51 JST 2015
YUKI Hiroshi 2015-03-24 13:01:51 +0900 (Tue, 24 Mar 2015) New Revision: a796bf930fa0369960a452d746321f00e36c5bc1 https://github.com/droonga/droonga-engine/commit/a796bf930fa0369960a452d746321f00e36c5bc1 Message: Join myself to the cluster based on the fetched catalog. Now "join" remote command just fetches and adds the node itself to the list of replicas. For safety, the command never modify other existing in the cluster. Modified files: lib/droonga/command/remote.rb Modified: lib/droonga/command/remote.rb (+3 -3) =================================================================== --- lib/droonga/command/remote.rb 2015-03-24 13:00:58 +0900 (dbd8767) +++ lib/droonga/command/remote.rb 2015-03-24 13:01:51 +0900 (7251aec) @@ -214,9 +214,9 @@ module Droonga log("joining to the cluster") @serf.join(*@other_hosts) - log("update catalog.json") - CatalogModifier.modify do |modifier, file| - modifier.datasets[dataset_name].replicas.hosts += @other_hosts + log("update catalog.json from fetched catalog") + CatalogModifier.modify(@catalog) do |modifier, file| + modifier.datasets[dataset_name].replicas.hosts += [joining_host] modifier.datasets[dataset_name].replicas.hosts.uniq! @service_installation.ensure_correct_file_permission(file) end -------------- next part -------------- HTML����������������������������... Download