Commit 58384d5f authored by Marko Mäkelä's avatar Marko Mäkelä

Avoid inserting the 'default row' into the adaptive hash index

parent b53eaadb
......@@ -2182,6 +2182,10 @@ btr_cur_search_to_nth_level(
btr_pcur_restore_position(). */
ut_ad(tuple->info_bits == REC_INFO_DEFAULT_ROW
|| tuple->info_bits == REC_INFO_MIN_REC_FLAG);
} else if (rec_is_default_row(btr_cur_get_rec(cursor),
index)) {
/* Only user records belong in the adaptive
hash index. */
} else {
btr_search_info_update(index, cursor);
}
......
......@@ -1899,7 +1899,7 @@ btr_search_update_hash_on_insert(btr_cur_t* cursor)
n_bytes, index->id);
}
if (!page_rec_is_infimum(rec)) {
if (!page_rec_is_infimum(rec) && !rec_is_default_row(rec, index)) {
offsets = rec_get_offsets(
rec, index, offsets, true,
btr_search_get_n_fields(n_fields, n_bytes), &heap);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment