Skip to content

Commit

Permalink
Remove unused mlog_catenate_ulint_compressed()
Browse files Browse the repository at this point in the history
The function was only used by trx_undo_page_init_log()
(writing the MLOG_UNDO_INIT record), which was removed in
commit ccb3550.
  • Loading branch information
dr-m committed Dec 16, 2019
1 parent cf0823f commit 59a0887
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 32 deletions.
8 changes: 0 additions & 8 deletions storage/innobase/include/mtr0log.h
Original file line number Diff line number Diff line change
Expand Up @@ -109,14 +109,6 @@ mlog_catenate_string(
const byte* str, /*!< in: string to write */
ulint len); /*!< in: string length */
/********************************************************//**
Catenates a compressed ulint to mlog. */
UNIV_INLINE
void
mlog_catenate_ulint_compressed(
/*===========================*/
mtr_t* mtr, /*!< in: mtr */
ulint val); /*!< in: value to write */
/********************************************************//**
Catenates a compressed 64-bit integer to mlog. */
UNIV_INLINE
void
Expand Down
24 changes: 0 additions & 24 deletions storage/innobase/include/mtr0log.ic
Original file line number Diff line number Diff line change
Expand Up @@ -117,30 +117,6 @@ mlog_catenate_ulint(
mlog_catenate_ulint(mtr->get_log(), val, type);
}

/********************************************************//**
Catenates a compressed ulint to mlog. */
UNIV_INLINE
void
mlog_catenate_ulint_compressed(
/*===========================*/
mtr_t* mtr, /*!< in: mtr */
ulint val) /*!< in: value to write */
{
byte* log_ptr;

log_ptr = mlog_open(mtr, 10);

/* If no logging is requested, we may return now */
if (log_ptr == NULL) {

return;
}

log_ptr += mach_write_compressed(log_ptr, val);

mlog_close(mtr, log_ptr);
}

/********************************************************//**
Catenates a compressed 64-bit integer to mlog. */
UNIV_INLINE
Expand Down

0 comments on commit 59a0887

Please sign in to comment.