Navigation Menu

Skip to content

Commit

Permalink
[storage] fix existing record can't be found.
Browse files Browse the repository at this point in the history
  • Loading branch information
kou committed Sep 23, 2011
1 parent 54f1870 commit 0be31df
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ha_mroonga.cc
Expand Up @@ -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);
}
Expand Down

0 comments on commit 0be31df

Please sign in to comment.