[Groonga-commit] droonga/fluent-plugin-droonga at f4b7772 [master] catalog v1: always create dataset object

Back to archive index

Kouhei Sutou null+****@clear*****
Fri Feb 28 10:12:49 JST 2014


Kouhei Sutou	2014-02-28 10:12:49 +0900 (Fri, 28 Feb 2014)

  New Revision: f4b7772558fe15781df99ac1613f2c87eddbfba5
  https://github.com/droonga/fluent-plugin-droonga/commit/f4b7772558fe15781df99ac1613f2c87eddbfba5

  Message:
    catalog v1: always create dataset object

  Modified files:
    lib/droonga/catalog/version1.rb

  Modified: lib/droonga/catalog/version1.rb (+1 -1)
===================================================================
--- lib/droonga/catalog/version1.rb    2014-02-27 23:35:23 +0900 (0abe47f)
+++ lib/droonga/catalog/version1.rb    2014-02-28 10:12:49 +0900 (27387c4)
@@ -119,6 +119,7 @@ module Droonga
       def prepare_data
         @datasets = {}
         @data["datasets"].each do |name, dataset|
+          @datasets[name] = Dataset.new(name, dataset)
           number_of_partitions = dataset["number_of_partitions"]
           next if number_of_partitions < 2
           total_weight = compute_total_weight(dataset)
@@ -131,7 +132,6 @@ module Droonga
             end
           end
           dataset["continuum"] = continuum.sort do |a, b| a[0] - b[0]; end
-          @datasets[name] = Dataset.new(name, dataset)
         end
         @options = @data["options"] || {}
       end
-------------- next part --------------
HTML����������������������������...
Descargar 



More information about the Groonga-commit mailing list
Back to archive index