From da28dd3cb01790610583fd366253859d5e71c5a7 Mon Sep 17 00:00:00 2001 From: marko <> Date: Mon, 17 Dec 2007 14:11:19 +0000 Subject: [PATCH] branches/zip: lock_rec_insert_check_and_lock(): Use the cached value of thr_get_trx(thr). --- lock/lock0lock.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lock/lock0lock.c b/lock/lock0lock.c index 9e027dd0fe0..dcb25494810 100644 --- a/lock/lock0lock.c +++ b/lock/lock0lock.c @@ -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