Commit 7dc0d53c authored by Marko Mäkelä's avatar Marko Mäkelä

innobase_add_instant_try(): Use the dictionary transaction for inserting the 'default row'

parent 758305d4
...@@ -4416,6 +4416,8 @@ innobase_add_instant_try( ...@@ -4416,6 +4416,8 @@ innobase_add_instant_try(
ut_ad(page_is_leaf(block->frame)); ut_ad(page_is_leaf(block->frame));
ut_ad(!buf_block_get_page_zip(block)); ut_ad(!buf_block_get_page_zip(block));
const rec_t* rec = btr_pcur_get_rec(&pcur); const rec_t* rec = btr_pcur_get_rec(&pcur);
que_thr_t* thr = pars_complete_graph_for_exec(
NULL, trx, ctx->heap, NULL);
if (rec_is_default_row(rec, old_index)) { if (rec_is_default_row(rec, old_index)) {
ut_ad(page_rec_is_user_rec(rec)); ut_ad(page_rec_is_user_rec(rec));
...@@ -4451,8 +4453,7 @@ innobase_add_instant_try( ...@@ -4451,8 +4453,7 @@ innobase_add_instant_try(
BTR_NO_LOCKING_FLAG, btr_pcur_get_btr_cur(&pcur), BTR_NO_LOCKING_FLAG, btr_pcur_get_btr_cur(&pcur),
&offsets, &offsets_heap, ctx->heap, &offsets, &offsets_heap, ctx->heap,
&big_rec, update, UPD_NODE_NO_ORD_CHANGE, &big_rec, update, UPD_NODE_NO_ORD_CHANGE,
pars_complete_graph_for_exec(NULL, trx, ctx->heap, thr, trx->id, &mtr);
NULL), trx->id, &mtr);
if (big_rec) { if (big_rec) {
if (error == DB_SUCCESS) { if (error == DB_SUCCESS) {
error = btr_store_big_rec_extern_fields( error = btr_store_big_rec_extern_fields(
...@@ -4510,7 +4511,7 @@ innobase_add_instant_try( ...@@ -4510,7 +4511,7 @@ innobase_add_instant_try(
mtr.set_named_space(index->space); mtr.set_named_space(index->space);
err = row_ins_clust_index_entry_low( err = row_ins_clust_index_entry_low(
BTR_NO_LOCKING_FLAG, BTR_MODIFY_TREE, index, BTR_NO_LOCKING_FLAG, BTR_MODIFY_TREE, index,
index->n_uniq, entry, 0, ctx->thr, false); index->n_uniq, entry, 0, thr, false);
} else { } else {
err = DB_CORRUPTION; err = DB_CORRUPTION;
} }
......
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