Commit 45f01898 authored by Marko Mäkelä's avatar Marko Mäkelä

Do not use page_cur_search_with_match_bytes() for comparing MIN_REC_FLAG

The 'default row' record (which is the only search tuple and the only
leaf-page record that carries the REC_INFO_MIN_REC_FLAG)  must be searched
by using the conventional means. Do not slow down the search shortcut by
taking the MIN_REC_FLAG into account.
parent b8e14a2e
...@@ -1589,6 +1589,7 @@ btr_cur_search_to_nth_level( ...@@ -1589,6 +1589,7 @@ btr_cur_search_to_nth_level(
} }
#ifdef BTR_CUR_HASH_ADAPT #ifdef BTR_CUR_HASH_ADAPT
} else if (height == 0 && btr_search_enabled } else if (height == 0 && btr_search_enabled
&& !(tuple->info_bits & REC_INFO_MIN_REC_FLAG)
&& !dict_index_is_spatial(index)) { && !dict_index_is_spatial(index)) {
/* The adaptive hash index is only used when searching /* The adaptive hash index is only used when searching
for leaf pages (height==0), but not in r-trees. for leaf pages (height==0), but not in r-trees.
......
...@@ -599,6 +599,7 @@ page_cur_search_with_match_bytes( ...@@ -599,6 +599,7 @@ page_cur_search_with_match_bytes(
rec_offs_init(offsets_); rec_offs_init(offsets_);
ut_ad(dtuple_validate(tuple)); ut_ad(dtuple_validate(tuple));
ut_ad(!(tuple->info_bits & REC_INFO_MIN_REC_FLAG));
#ifdef UNIV_DEBUG #ifdef UNIV_DEBUG
# ifdef PAGE_CUR_DBG # ifdef PAGE_CUR_DBG
if (mode != PAGE_CUR_DBG) if (mode != PAGE_CUR_DBG)
......
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