null+****@clear*****
null+****@clear*****
2011年 9月 23日 (金) 23:21:03 JST
Kouhei Sutou 2011-09-23 14:21:03 +0000 (Fri, 23 Sep 2011) New Revision: 0be31df0e50c76e760e6254ce14ebd48655dba54 Log: [storage] fix existing record can't be found. Modified files: ha_mroonga.cc Modified: ha_mroonga.cc (+1 -1) =================================================================== --- ha_mroonga.cc 2011-09-23 14:20:07 +0000 (d7f3ad3) +++ ha_mroonga.cc 2011-09-23 14:21:03 +0000 (87c14e3) @@ -3801,7 +3801,7 @@ ha_rows ha_mroonga::storage_records_in_range(uint key_nr, key_range *range_min, } grn_table_cursor_close(ctx, index_cursor); grn_table_cursor_close(ctx, cursor); - row_count = (int)((double)table_size * ((double)row_count / (double)cardinality)); + row_count = (int)(round((double)table_size * ((double)row_count / (double)cardinality))); } DBUG_RETURN(row_count); }