summaryrefslogtreecommitdiff
path: root/storage/innobase/ibuf/ibuf0ibuf.cc
diff options
context:
space:
mode:
Diffstat (limited to 'storage/innobase/ibuf/ibuf0ibuf.cc')
-rw-r--r--storage/innobase/ibuf/ibuf0ibuf.cc8
1 files changed, 6 insertions, 2 deletions
diff --git a/storage/innobase/ibuf/ibuf0ibuf.cc b/storage/innobase/ibuf/ibuf0ibuf.cc
index e6c36b425e6..3bc56c2d737 100644
--- a/storage/innobase/ibuf/ibuf0ibuf.cc
+++ b/storage/innobase/ibuf/ibuf0ibuf.cc
@@ -571,7 +571,9 @@ ibuf_init_at_db_start(void)
ibuf->index->n_uniq = REC_MAX_N_FIELDS;
rw_lock_create(index_tree_rw_lock_key, &ibuf->index->lock,
SYNC_IBUF_INDEX_TREE);
+#ifdef BTR_CUR_ADAPT
ibuf->index->search_info = btr_search_info_create(ibuf->index->heap);
+#endif /* BTR_CUR_ADAPT */
ibuf->index->page = FSP_IBUF_TREE_ROOT_PAGE_NO;
ut_d(ibuf->index->cached = TRUE);
return (error);
@@ -808,7 +810,7 @@ ibuf_bitmap_get_map_page_func(
const page_id_t& page_id,
const page_size_t& page_size,
const char* file,
- ulint line,
+ unsigned line,
mtr_t* mtr)
{
buf_block_t* block = NULL;
@@ -1136,7 +1138,7 @@ ibuf_page_low(
ibool x_latch,
#endif /* UNIV_DEBUG */
const char* file,
- ulint line,
+ unsigned line,
mtr_t* mtr)
{
ibool ret;
@@ -3954,7 +3956,9 @@ ibuf_insert_to_index_page(
ut_ad(!dict_index_is_online_ddl(index));// this is an ibuf_dummy index
ut_ad(ibuf_inside(mtr));
ut_ad(dtuple_check_typed(entry));
+#ifdef BTR_CUR_HASH_ADAPT
ut_ad(!block->index);
+#endif /* BTR_CUR_HASH_ADAPT */
ut_ad(mtr->is_named_space(block->page.id.space()));
if (UNIV_UNLIKELY(dict_table_is_comp(index->table)