Commit 0dc3b272 authored by Marko Mäkelä's avatar Marko Mäkelä

Bug#11766305 - 59392: Remove thr0loc.c and ibuf_inside() [part 1]

Remove unused member mtr from btr_pcur_struct.

rb:624 approved by Sunny Bains
parent 43088122
...@@ -264,22 +264,6 @@ ulint ...@@ -264,22 +264,6 @@ ulint
btr_pcur_get_rel_pos( btr_pcur_get_rel_pos(
/*=================*/ /*=================*/
const btr_pcur_t* cursor);/*!< in: persistent cursor */ const btr_pcur_t* cursor);/*!< in: persistent cursor */
/*********************************************************//**
Sets the mtr field for a pcur. */
UNIV_INLINE
void
btr_pcur_set_mtr(
/*=============*/
btr_pcur_t* cursor, /*!< in: persistent cursor */
mtr_t* mtr); /*!< in, own: mtr */
/*********************************************************//**
Gets the mtr field for a pcur.
@return mtr */
UNIV_INLINE
mtr_t*
btr_pcur_get_mtr(
/*=============*/
btr_pcur_t* cursor); /*!< in: persistent cursor */
/**************************************************************//** /**************************************************************//**
Commits the mtr and sets the pcur latch mode to BTR_NO_LATCHES, Commits the mtr and sets the pcur latch mode to BTR_NO_LATCHES,
that is, the cursor becomes detached. If there have been modifications that is, the cursor becomes detached. If there have been modifications
...@@ -517,9 +501,6 @@ struct btr_pcur_struct{ ...@@ -517,9 +501,6 @@ struct btr_pcur_struct{
/* NOTE that the following fields may possess dynamically allocated /* NOTE that the following fields may possess dynamically allocated
memory which should be freed if not needed anymore! */ memory which should be freed if not needed anymore! */
mtr_t* mtr; /*!< NULL, or this field may contain
a mini-transaction which holds the
latch on the cursor page */
byte* old_rec_buf; /*!< NULL, or a dynamically allocated byte* old_rec_buf; /*!< NULL, or a dynamically allocated
buffer for old_rec */ buffer for old_rec */
ulint buf_size; /*!< old_rec_buf size if old_rec_buf ulint buf_size; /*!< old_rec_buf size if old_rec_buf
......
...@@ -42,34 +42,6 @@ btr_pcur_get_rel_pos( ...@@ -42,34 +42,6 @@ btr_pcur_get_rel_pos(
return(cursor->rel_pos); return(cursor->rel_pos);
} }
/*********************************************************//**
Sets the mtr field for a pcur. */
UNIV_INLINE
void
btr_pcur_set_mtr(
/*=============*/
btr_pcur_t* cursor, /*!< in: persistent cursor */
mtr_t* mtr) /*!< in, own: mtr */
{
ut_ad(cursor);
cursor->mtr = mtr;
}
/*********************************************************//**
Gets the mtr field for a pcur.
@return mtr */
UNIV_INLINE
mtr_t*
btr_pcur_get_mtr(
/*=============*/
btr_pcur_t* cursor) /*!< in: persistent cursor */
{
ut_ad(cursor);
return(cursor->mtr);
}
#ifdef UNIV_DEBUG #ifdef UNIV_DEBUG
/*********************************************************//** /*********************************************************//**
Returns the btr cursor component of a persistent cursor. Returns the btr cursor component of a persistent 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