Commit 4a456eac authored by Marko Mäkelä's avatar Marko Mäkelä

Remove unused BtrBulk::m_heap

parent a3b22147
...@@ -763,8 +763,6 @@ BtrBulk::insert( ...@@ -763,8 +763,6 @@ BtrBulk::insert(
bool is_left_most = false; bool is_left_most = false;
dberr_t err = DB_SUCCESS; dberr_t err = DB_SUCCESS;
ut_ad(m_heap != NULL);
/* Check if we need to create a PageBulk for the level. */ /* Check if we need to create a PageBulk for the level. */
if (level + 1 > m_page_bulks->size()) { if (level + 1 > m_page_bulks->size()) {
PageBulk* new_page_bulk PageBulk* new_page_bulk
......
...@@ -279,7 +279,6 @@ class BtrBulk ...@@ -279,7 +279,6 @@ class BtrBulk
trx_id_t trx_id, trx_id_t trx_id,
FlushObserver* observer) FlushObserver* observer)
: :
m_heap(NULL),
m_index(index), m_index(index),
m_trx_id(trx_id), m_trx_id(trx_id),
m_flush_observer(observer) m_flush_observer(observer)
...@@ -293,7 +292,6 @@ class BtrBulk ...@@ -293,7 +292,6 @@ class BtrBulk
/** Destructor */ /** Destructor */
~BtrBulk() ~BtrBulk()
{ {
mem_heap_free(m_heap);
UT_DELETE(m_page_bulks); UT_DELETE(m_page_bulks);
#ifdef UNIV_DEBUG #ifdef UNIV_DEBUG
...@@ -305,9 +303,6 @@ class BtrBulk ...@@ -305,9 +303,6 @@ class BtrBulk
Note: must be called right after constructor. */ Note: must be called right after constructor. */
void init() void init()
{ {
ut_ad(m_heap == NULL);
m_heap = mem_heap_create(1000);
m_page_bulks = UT_NEW_NOKEY(page_bulk_vector()); m_page_bulks = UT_NEW_NOKEY(page_bulk_vector());
} }
...@@ -371,9 +366,6 @@ class BtrBulk ...@@ -371,9 +366,6 @@ class BtrBulk
void logFreeCheck(); void logFreeCheck();
private: private:
/** Memory heap for allocation */
mem_heap_t* m_heap;
/** B-tree index */ /** B-tree index */
dict_index_t* m_index; dict_index_t* m_index;
......
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