Commit 8d54e9e6 authored by marko's avatar marko

branches/zip: lock_rec_insert_check_and_lock(): Use the cached value

of thr_get_trx(thr).
parent 252b24e8
......@@ -4880,7 +4880,7 @@ lock_rec_insert_check_and_lock(
lock_mutex_enter_kernel();
ut_ad(lock_table_has(thr_get_trx(thr), index->table, LOCK_IX));
ut_ad(lock_table_has(trx, index->table, LOCK_IX));
next_rec_heap_no = page_rec_get_heap_no(next_rec);
......@@ -4895,7 +4895,7 @@ lock_rec_insert_check_and_lock(
/* Update the page max trx id field */
page_update_max_trx_id(block,
buf_block_get_page_zip(block),
thr_get_trx(thr)->id);
trx->id);
}
*inherit = FALSE;
......@@ -4934,7 +4934,7 @@ lock_rec_insert_check_and_lock(
/* Update the page max trx id field */
page_update_max_trx_id(block,
buf_block_get_page_zip(block),
thr_get_trx(thr)->id);
trx->id);
}
#ifdef UNIV_DEBUG
......
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