Commit 172199b8 authored by Marko Mäkelä's avatar Marko Mäkelä

PageBulk: Remove dead code

Native ALTER TABLE is never invoked on temporary tables.
parent 7f548943
...@@ -122,9 +122,7 @@ PageBulk::init() ...@@ -122,9 +122,7 @@ PageBulk::init()
btr_page_set_level(new_page, NULL, m_level, mtr); btr_page_set_level(new_page, NULL, m_level, mtr);
} }
if (dict_index_is_sec_or_ibuf(m_index) if (!m_level && dict_index_is_sec_or_ibuf(m_index)) {
&& !dict_table_is_temporary(m_index->table)
&& page_is_leaf(new_page)) {
page_update_max_trx_id(new_block, NULL, m_trx_id, mtr); page_update_max_trx_id(new_block, NULL, m_trx_id, mtr);
} }
...@@ -310,9 +308,7 @@ PageBulk::commit( ...@@ -310,9 +308,7 @@ PageBulk::commit(
ut_ad(page_validate(m_page, m_index)); ut_ad(page_validate(m_page, m_index));
/* Set no free space left and no buffered changes in ibuf. */ /* Set no free space left and no buffered changes in ibuf. */
if (!dict_index_is_clust(m_index) if (!dict_index_is_clust(m_index) && page_is_leaf(m_page)) {
&& !dict_table_is_temporary(m_index->table)
&& page_is_leaf(m_page)) {
ibuf_set_bitmap_for_bulk_load( ibuf_set_bitmap_for_bulk_load(
m_block, innobase_fill_factor == 100); m_block, innobase_fill_factor == 100);
} }
......
...@@ -84,6 +84,7 @@ class PageBulk ...@@ -84,6 +84,7 @@ class PageBulk
m_err(DB_SUCCESS) m_err(DB_SUCCESS)
{ {
ut_ad(!dict_index_is_spatial(m_index)); ut_ad(!dict_index_is_spatial(m_index));
ut_ad(!dict_table_is_temporary(m_index->table));
} }
/** Deconstructor */ /** Deconstructor */
......
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