Skip to content

Commit

Permalink
MDEV-19869: Correct the logic, and avoid type mismatch
Browse files Browse the repository at this point in the history
  • Loading branch information
dr-m committed Jul 2, 2019
1 parent 0c6514e commit c1cb5c1
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions storage/innobase/handler/ha_innodb.cc
Expand Up @@ -9687,13 +9687,12 @@ ha_innobase::change_active_index(
/* Initialization of search_tuple is not needed for FT index
since FT search returns rank only. In addition engine should
be able to retrieve FTS_DOC_ID column value if necessary. */
if ((m_prebuilt->index->type & DICT_FTS)) {

for (ulint i = 0; i < table->s->fields; i++) {
if (m_prebuilt->index->type & DICT_FTS) {
for (uint i = 0; i < table->s->fields; i++) {
if (m_prebuilt->read_just_key
&& bitmap_get_next_set(table->read_set, i)
&& !strcmp(table->s->field[i]->field_name,
FTS_DOC_ID_COL_NAME)){
&& bitmap_is_set(table->read_set, i)
&& !strcmp(table->s->field[i]->field_name.str,
FTS_DOC_ID_COL_NAME)) {
m_prebuilt->fts_doc_id_in_read_set = true;
break;
}
Expand Down

0 comments on commit c1cb5c1

Please sign in to comment.