mirror of
https://github.com/MariaDB/server.git
synced 2026-05-06 23:25:34 +02:00
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
This commit is contained in:
parent
4308812281
commit
0dc3b27245
2 changed files with 0 additions and 47 deletions
|
|
@ -264,22 +264,6 @@ ulint
|
|||
btr_pcur_get_rel_pos(
|
||||
/*=================*/
|
||||
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,
|
||||
that is, the cursor becomes detached. If there have been modifications
|
||||
|
|
@ -517,9 +501,6 @@ struct btr_pcur_struct{
|
|||
/* NOTE that the following fields may possess dynamically allocated
|
||||
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
|
||||
buffer for old_rec */
|
||||
ulint buf_size; /*!< old_rec_buf size if old_rec_buf
|
||||
|
|
|
|||
|
|
@ -42,34 +42,6 @@ btr_pcur_get_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
|
||||
/*********************************************************//**
|
||||
Returns the btr cursor component of a persistent cursor.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue