Skip to content

Commit 5c4473d

Browse files
committed
IB: misc fix
1 parent 3579f5f commit 5c4473d

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

storage/innobase/row/row0ins.cc

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3861,21 +3861,18 @@ vers_row_ins_vtq_low(trx_t* trx, mem_heap_t* heap, dtuple_t* row)
38613861
mem_heap_t* offsets_heap = mem_heap_create(1024);
38623862

38633863
do {
3864-
n_index++;
3865-
38663864
if (!(index = dict_table_get_next_index(index))) {
38673865
break;
38683866
}
38693867

3870-
if (index->type & DICT_FTS) {
3871-
continue;
3872-
}
3868+
n_index++;
38733869

38743870
entry = row_build_index_entry(row, NULL, index, heap);
38753871
err = row_ins_sec_index_entry_low(
38763872
flags, BTR_MODIFY_TREE,
38773873
index, offsets_heap, heap, entry, trx->id, NULL, false, trx);
38783874
} while (err == DB_SUCCESS);
3875+
ut_ad(n_index == 2 || err != DB_SUCCESS);
38793876

38803877
mem_heap_free(offsets_heap);
38813878
return err;

0 commit comments

Comments
 (0)