YUKI Hiroshi
null+****@clear*****
Wed Mar 25 10:57:56 JST 2015
YUKI Hiroshi 2015-03-25 10:57:56 +0900 (Wed, 25 Mar 2015) New Revision: 4c43188edaab8d93e983e462fe5fc97f7581f4eb https://github.com/droonga/droonga-engine/commit/4c43188edaab8d93e983e462fe5fc97f7581f4eb Message: Align Modified files: lib/droonga/catalog_generator.rb Modified: lib/droonga/catalog_generator.rb (+11 -11) =================================================================== --- lib/droonga/catalog_generator.rb 2015-03-25 10:57:16 +0900 (6edcf39) +++ lib/droonga/catalog_generator.rb 2015-03-25 10:57:56 +0900 (6d6ddc3) @@ -41,9 +41,9 @@ module Droonga end def initialize - @version = 2 + @version = 2 @effective_date = Time.now - @datasets = {} + @datasets = {} end def add_dataset(name, options) @@ -172,10 +172,10 @@ module Droonga attr_reader :port, :tag, :n_slices def initialize(options={}) - @hosts = options[:hosts] || DEFAULT_HOSTS - @port = options[:port] - @tag = options[:tag] - @n_slices = options[:n_slices] + @hosts = options[:hosts] || DEFAULT_HOSTS + @port = options[:port] + @tag = options[:tag] + @n_slices = options[:n_slices] end def load(catalog_replicas) @@ -189,7 +189,7 @@ module Droonga @n_slices = slices.size single_volume_address = slices.first.volume.address @port = single_volume_address.port - @tag = single_volume_address.tag + @tag = single_volume_address.tag end def to_catalog @@ -206,10 +206,10 @@ module Droonga class Replica def initialize(host, options={}) - @host = host - @port = options[:port] || DEFAULT_PORT - @tag = options[:tag] || DEFAULT_TAG - @n_slices = options[:n_slices] || DEFAULT_N_SLICES + @host = host + @port = options[:port] || DEFAULT_PORT + @tag = options[:tag] || DEFAULT_TAG + @n_slices = options[:n_slices] || DEFAULT_N_SLICES end def to_catalog -------------- next part -------------- HTML����������������������������... Download