Commit 0aba4871 authored by Marko Makela's avatar Marko Makela

btr_cur_optimistic_insert(): Remove unused variable "heap".

parent bac9559e
...@@ -1064,7 +1064,6 @@ btr_cur_optimistic_insert( ...@@ -1064,7 +1064,6 @@ btr_cur_optimistic_insert(
ibool inherit; ibool inherit;
ulint zip_size; ulint zip_size;
ulint rec_size; ulint rec_size;
mem_heap_t* heap = NULL;
ulint err; ulint err;
*big_rec = NULL; *big_rec = NULL;
...@@ -1144,10 +1143,6 @@ btr_cur_optimistic_insert( ...@@ -1144,10 +1143,6 @@ btr_cur_optimistic_insert(
index, entry, big_rec_vec); index, entry, big_rec_vec);
} }
if (heap) {
mem_heap_free(heap);
}
return(DB_TOO_BIG_RECORD); return(DB_TOO_BIG_RECORD);
} }
} }
...@@ -1170,10 +1165,6 @@ fail_err: ...@@ -1170,10 +1165,6 @@ fail_err:
dtuple_convert_back_big_rec(index, entry, big_rec_vec); dtuple_convert_back_big_rec(index, entry, big_rec_vec);
} }
if (UNIV_LIKELY_NULL(heap)) {
mem_heap_free(heap);
}
return(err); return(err);
} }
...@@ -1244,10 +1235,6 @@ fail_err: ...@@ -1244,10 +1235,6 @@ fail_err:
} }
} }
if (UNIV_LIKELY_NULL(heap)) {
mem_heap_free(heap);
}
#ifdef BTR_CUR_HASH_ADAPT #ifdef BTR_CUR_HASH_ADAPT
if (!reorg && leaf && (cursor->flag == BTR_CUR_HASH)) { if (!reorg && leaf && (cursor->flag == BTR_CUR_HASH)) {
btr_search_update_hash_node_on_insert(cursor); btr_search_update_hash_node_on_insert(cursor);
......
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