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: 071f253fb3b707088e8ba5c385378c571be56804 https://github.com/droonga/droonga-engine/commit/071f253fb3b707088e8ba5c385378c571be56804 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����������������������������... 下载