[Groonga-commit] groonga/groonga at 81cf028 [master] sharding: add missing argument

Back to archive index

Kouhei Sutou null+****@clear*****
Wed Apr 1 12:57:50 JST 2015


Kouhei Sutou	2015-04-01 12:57:50 +0900 (Wed, 01 Apr 2015)

  New Revision: 81cf0281c6c73029959b1e9da2c4b6d145f45046
  https://github.com/groonga/groonga/commit/81cf0281c6c73029959b1e9da2c4b6d145f45046

  Message:
    sharding: add missing argument

  Modified files:
    plugins/sharding/logical_range_filter.rb

  Modified: plugins/sharding/logical_range_filter.rb (+4 -4)
===================================================================
--- plugins/sharding/logical_range_filter.rb    2015-04-01 12:50:29 +0900 (32fdb77)
+++ plugins/sharding/logical_range_filter.rb    2015-04-01 12:57:50 +0900 (c4479a1)
@@ -274,7 +274,7 @@ module Groonga
             if @filter
               create_expression(@table) do |expression|
                 build_expression_all(expression)
-                estimated_n_records = expression.estimate_size
+                estimated_n_records = expression.estimate_size(@table)
               end
             else
               estimated_n_records = max_n_records
@@ -282,17 +282,17 @@ module Groonga
           when :partial_min
             create_expression(@table) do |expression|
                 build_expression_partial_min(expression)
-              estimated_n_records = expression.estimate_size
+              estimated_n_records = expression.estimate_size(@table)
             end
           when :partial_max
             create_expression(@table) do |expression|
               build_expression_partial_max(expression)
-              estimated_n_records = expression.estimate_size
+              estimated_n_records = expression.estimate_size(@table)
             end
           when :partial_min_and_max
             create_expression(@table) do |expression|
               build_expression_partial_min_and_max(expression)
-              estimated_n_records = expression.estimate_size
+              estimated_n_records = expression.estimate_size(@table)
             end
           end
 
-------------- next part --------------
HTML����������������������������...
Download 



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