YUKI Hiroshi
null+****@clear*****
Tue Jul 22 19:57:23 JST 2014
YUKI Hiroshi 2014-07-22 19:57:23 +0900 (Tue, 22 Jul 2014) New Revision: 7758654e56e53c6ff8408301f6d42a8cdbefe2e3 https://github.com/droonga/droonga-engine/commit/7758654e56e53c6ff8408301f6d42a8cdbefe2e3 Message: Load list of replica hosts from catalog.json correctly Modified files: lib/droonga/catalog_generator.rb Modified: lib/droonga/catalog_generator.rb (+3 -3) =================================================================== --- lib/droonga/catalog_generator.rb 2014-07-22 19:03:16 +0900 (1c6a112) +++ lib/droonga/catalog_generator.rb 2014-07-22 19:57:23 +0900 (9dbd850) @@ -180,11 +180,11 @@ module Droonga def load(catalog_replicas) dataset = Catalog::Dataset.new("temporary", "replicas" => catalog_replicas) + @hosts = dataset.replicas.collect do |replica| + replica.slices.first.volume.address.host + end collection_volume = dataset.replicas.first slices = collection_volume.slices - @hosts = slices.collect do |slice| - slice.volume.address.host - end @n_slices = slices.size single_volume_address = slices.first.volume.address @port = single_volume_address.port -------------- next part -------------- HTML����������������������������...Download