Commit ab05a4a2 authored by Inaam Rana's avatar Inaam Rana

Fix compiler warning introduced by previous commit.

parent 153677e4
......@@ -262,8 +262,6 @@ UNIV_INTERN
page_t*
trx_undo_set_state_at_finish(
/*=========================*/
trx_rseg_t* rseg, /*!< in: rollback segment memory object */
trx_t* trx, /*!< in: transaction */
trx_undo_t* undo, /*!< in: undo log memory copy */
mtr_t* mtr); /*!< in: mtr */
/******************************************************************//**
......
......@@ -753,8 +753,7 @@ trx_commit_off_kernel(
mutex_enter(&(rseg->mutex));
if (trx->insert_undo != NULL) {
trx_undo_set_state_at_finish(
rseg, trx, trx->insert_undo, &mtr);
trx_undo_set_state_at_finish(trx->insert_undo, &mtr);
}
undo = trx->update_undo;
......@@ -769,7 +768,7 @@ trx_commit_off_kernel(
transaction commit for this transaction. */
update_hdr_page = trx_undo_set_state_at_finish(
rseg, trx, undo, &mtr);
undo, &mtr);
/* We have to do the cleanup for the update log while
holding the rseg mutex because update log headers
......
......@@ -1798,8 +1798,6 @@ UNIV_INTERN
page_t*
trx_undo_set_state_at_finish(
/*=========================*/
trx_rseg_t* rseg, /*!< in: rollback segment memory object */
trx_t* trx __attribute__((unused)), /*!< in: transaction */
trx_undo_t* undo, /*!< in: undo log memory copy */
mtr_t* mtr) /*!< in: mtr */
{
......@@ -1808,10 +1806,8 @@ trx_undo_set_state_at_finish(
page_t* undo_page;
ulint state;
ut_ad(trx);
ut_ad(undo);
ut_ad(mtr);
ut_ad(mutex_own(&rseg->mutex));
if (undo->id >= TRX_RSEG_N_SLOTS) {
fprintf(stderr, "InnoDB: Error: undo->id is %lu\n",
......
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