Kouhei Sutou
null+****@clear*****
Mon Nov 16 11:27:04 JST 2015
Kouhei Sutou 2015-11-16 11:27:04 +0900 (Mon, 16 Nov 2015) New Revision: 37504db1ab6d8340d7511c28ae1cf90a876e3437 https://github.com/groonga/groonga/commit/37504db1ab6d8340d7511c28ae1cf90a876e3437 Message: logical_range_filter: add missing ceil Modified files: plugins/sharding/logical_range_filter.rb Modified: plugins/sharding/logical_range_filter.rb (+1 -1) =================================================================== --- plugins/sharding/logical_range_filter.rb 2015-11-15 16:49:00 +0900 (85fb295) +++ plugins/sharding/logical_range_filter.rb 2015-11-16 11:27:04 +0900 (d4dc14b) @@ -583,7 +583,7 @@ module Groonga max_n_unmatched_records = limit * 100 max_n_sample_records = data_table_size if max_n_sample_records > 10000 - max_n_sample_records /= 100 + max_n_sample_records = (max_n_sample_records / 100).ceil end if max_n_unmatched_records > max_n_sample_records max_n_unmatched_records = max_n_sample_records -------------- next part -------------- HTML����������������������������...다운로드