Tetsuro IKEDA
null+****@clear*****
Thu Oct 4 10:20:48 JST 2012
Tetsuro IKEDA 2010-06-21 20:02:10 +0900 (Mon, 21 Jun 2010) New Revision: a9077fe1af301f28c6e114eba12dff997f038e81 https://github.com/mroonga/mroonga/commit/a9077fe1af301f28c6e114eba12dff997f038e81 Log: added column pruning to fulltext (ft_read). Modified files: ha_mroonga.cc Modified: ha_mroonga.cc (+4 -2) =================================================================== --- ha_mroonga.cc 2010-06-21 18:07:34 +0900 (bb7be03) +++ ha_mroonga.cc 2010-06-21 20:02:10 +0900 (673702b) @@ -1198,8 +1198,10 @@ int ha_mroonga::ft_read(uchar *buf) int n_columns = table->s->fields; for (i=0; i < n_columns; i++) { Field *field = table->field[i]; - bitmap_set_bit(table->write_set, field->field_index); - mrn_store_field(ctx, field, col[i], row_id); + if (bitmap_is_set(table->read_set, field->field_index)) { + bitmap_set_bit(table->write_set, field->field_index); + mrn_store_field(ctx, field, col[i], row_id); + } } DBUG_RETURN(0); } -------------- next part -------------- HTML����������������������������...Download