Commit e4901d95 authored by Marko Mäkelä's avatar Marko Mäkelä

Merge 10.2 into 10.3

parents 1b45e05c da6f4d51
...@@ -65,3 +65,4 @@ ALTER TABLE t2 IMPORT TABLESPACE; ...@@ -65,3 +65,4 @@ ALTER TABLE t2 IMPORT TABLESPACE;
DROP TABLE t2; DROP TABLE t2;
--remove_file $MYSQLD_DATADIR/test/tmp.ibd --remove_file $MYSQLD_DATADIR/test/tmp.ibd
--remove_file $MYSQLD_DATADIR/test/tmp.cfg
...@@ -2913,7 +2913,7 @@ bool st_select_lex::setup_ref_array(THD *thd, uint order_group_num) ...@@ -2913,7 +2913,7 @@ bool st_select_lex::setup_ref_array(THD *thd, uint order_group_num)
prepared statement prepared statement
*/ */
Query_arena *arena= thd->stmt_arena; Query_arena *arena= thd->stmt_arena;
const uint n_elems= (n_sum_items + const size_t n_elems= (n_sum_items +
n_child_sum_items + n_child_sum_items +
item_list.elements + item_list.elements +
select_n_reserved + select_n_reserved +
...@@ -2921,7 +2921,8 @@ bool st_select_lex::setup_ref_array(THD *thd, uint order_group_num) ...@@ -2921,7 +2921,8 @@ bool st_select_lex::setup_ref_array(THD *thd, uint order_group_num)
select_n_where_fields + select_n_where_fields +
order_group_num + order_group_num +
hidden_bit_fields + hidden_bit_fields +
fields_in_window_functions) * 5; fields_in_window_functions) * (size_t) 5;
DBUG_ASSERT(n_elems % 5 == 0);
if (!ref_pointer_array.is_null()) if (!ref_pointer_array.is_null())
{ {
/* /*
......
...@@ -689,9 +689,7 @@ dberr_t FetchIndexRootPages::operator()(buf_block_t* block) UNIV_NOTHROW ...@@ -689,9 +689,7 @@ dberr_t FetchIndexRootPages::operator()(buf_block_t* block) UNIV_NOTHROW
const page_t* page = get_frame(block); const page_t* page = get_frame(block);
index_id_t id = btr_page_get_index_id(page); m_index.m_id = btr_page_get_index_id(page);
m_index.m_id = id;
m_index.m_page_no = block->page.id.page_no(); m_index.m_page_no = block->page.id.page_no();
/* Check that the tablespace flags match the table flags. */ /* Check that the tablespace flags match the table flags. */
...@@ -1886,11 +1884,14 @@ PageConverter::update_index_page( ...@@ -1886,11 +1884,14 @@ PageConverter::update_index_page(
if (is_free(block->page.id.page_no())) { if (is_free(block->page.id.page_no())) {
return(DB_SUCCESS); return(DB_SUCCESS);
} else if ((id = btr_page_get_index_id(page)) != m_index->m_id && !m_cfg->m_missing) { } else if ((id = btr_page_get_index_id(page)) != m_index->m_id) {
row_index_t* index = find_index(id); row_index_t* index = find_index(id);
if (UNIV_UNLIKELY(!index)) { if (UNIV_UNLIKELY(!index)) {
if (m_cfg->m_missing) {
return DB_SUCCESS;
}
ib::error() << "Page for tablespace " << m_space ib::error() << "Page for tablespace " << m_space
<< " is index page with id " << id << " is index page with id " << id
<< " but that index is not found from" << " but that index is not found from"
......
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