Skip to content

Commit 61d251c

Browse files
committed
MDEV-13542 fixup: Remove orphan trx_print()
1 parent f0ae019 commit 61d251c

2 files changed

Lines changed: 2 additions & 34 deletions

File tree

storage/innobase/include/trx0trx.h

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -218,23 +218,13 @@ trx_print_low(
218218
/*!< in: mem_heap_get_size(trx->lock.lock_heap) */
219219

220220
/**********************************************************************//**
221-
Prints info about a transaction.
222-
When possible, use trx_print() instead. */
221+
Prints info about a transaction. */
223222
void
224223
trx_print_latched(
225224
/*==============*/
226225
FILE* f, /*!< in: output stream */
227226
const trx_t* trx); /*!< in: transaction */
228227

229-
/**********************************************************************//**
230-
Prints info about a transaction.
231-
Acquires and releases lock_sys.latch. */
232-
void
233-
trx_print(
234-
/*======*/
235-
FILE* f, /*!< in: output stream */
236-
const trx_t* trx); /*!< in: transaction */
237-
238228
/**********************************************************************//**
239229
Determines if a transaction is in the given state.
240230
The caller must hold trx->mutex, or it must be the thread

storage/innobase/trx/trx0trx.cc

Lines changed: 1 addition & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1836,8 +1836,7 @@ trx_print_low(
18361836

18371837
/**********************************************************************//**
18381838
Prints info about a transaction.
1839-
The caller must hold lock_sys.latch.
1840-
When possible, use trx_print() instead. */
1839+
The caller must hold lock_sys.latch. */
18411840
void
18421841
trx_print_latched(
18431842
/*==============*/
@@ -1852,27 +1851,6 @@ trx_print_latched(
18521851
mem_heap_get_size(trx->lock.lock_heap));
18531852
}
18541853

1855-
/**********************************************************************//**
1856-
Prints info about a transaction.
1857-
Acquires and releases lock_sys.latch. */
1858-
TRANSACTIONAL_TARGET
1859-
void
1860-
trx_print(
1861-
/*======*/
1862-
FILE* f, /*!< in: output stream */
1863-
const trx_t* trx) /*!< in: transaction */
1864-
{
1865-
ulint n_rec_locks, n_trx_locks, heap_size;
1866-
{
1867-
TMLockMutexGuard g{SRW_LOCK_CALL};
1868-
n_rec_locks= trx->lock.n_rec_locks;
1869-
n_trx_locks= UT_LIST_GET_LEN(trx->lock.trx_locks);
1870-
heap_size= mem_heap_get_size(trx->lock.lock_heap);
1871-
}
1872-
1873-
trx_print_low(f, trx, n_rec_locks, n_trx_locks, heap_size);
1874-
}
1875-
18761854
/** Prepare a transaction.
18771855
@return log sequence number that makes the XA PREPARE durable
18781856
@retval 0 if no changes needed to be made durable */

0 commit comments

Comments
 (0)