mirror of
https://github.com/MariaDB/server.git
synced 2025-01-20 22:12:30 +01:00
branches/zip: lock_rec_insert_check_and_lock(): Use the cached value
of thr_get_trx(thr).
This commit is contained in:
parent
ca75e7797d
commit
da28dd3cb0
1 changed files with 3 additions and 3 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue