mirror of
https://github.com/MariaDB/server.git
synced 2025-01-16 03:52:35 +01:00
trx_undo_seg_create(): Remove an unused parameter
This commit is contained in:
parent
a7e12fd42b
commit
4981f95ffa
1 changed files with 4 additions and 11 deletions
|
@ -424,7 +424,6 @@ static MY_ATTRIBUTE((warn_unused_result))
|
|||
dberr_t
|
||||
trx_undo_seg_create(
|
||||
/*================*/
|
||||
trx_rseg_t* rseg MY_ATTRIBUTE((unused)),/*!< in: rollback segment */
|
||||
trx_rsegf_t* rseg_hdr,/*!< in: rollback segment header, page
|
||||
x-latched */
|
||||
ulint* id, /*!< out: slot index within rseg header */
|
||||
|
@ -440,12 +439,10 @@ trx_undo_seg_create(
|
|||
trx_usegf_t* seg_hdr;
|
||||
ulint n_reserved;
|
||||
bool success;
|
||||
dberr_t err = DB_SUCCESS;
|
||||
|
||||
ut_ad(mtr != NULL);
|
||||
ut_ad(id != NULL);
|
||||
ut_ad(rseg_hdr != NULL);
|
||||
ut_ad(mutex_own(&(rseg->mutex)));
|
||||
|
||||
slot_no = trx_rsegf_undo_find_free(rseg_hdr, mtr);
|
||||
|
||||
|
@ -505,7 +502,7 @@ trx_undo_seg_create(
|
|||
|
||||
MONITOR_INC(MONITOR_NUM_UNDO_SLOT_USED);
|
||||
|
||||
return(err);
|
||||
return(DB_SUCCESS);
|
||||
}
|
||||
|
||||
/**********************************************************************//**
|
||||
|
@ -1323,20 +1320,16 @@ trx_undo_create(
|
|||
return(DB_OUT_OF_FILE_SPACE);
|
||||
}
|
||||
|
||||
rseg->curr_size++;
|
||||
|
||||
rseg_header = trx_rsegf_get(rseg->space, rseg->page_no, mtr);
|
||||
|
||||
err = trx_undo_seg_create(rseg, rseg_header, &id, &undo_page, mtr);
|
||||
err = trx_undo_seg_create(rseg_header, &id, &undo_page, mtr);
|
||||
|
||||
if (err != DB_SUCCESS) {
|
||||
/* Did not succeed */
|
||||
|
||||
rseg->curr_size--;
|
||||
|
||||
return(err);
|
||||
}
|
||||
|
||||
rseg->curr_size++;
|
||||
|
||||
page_no = page_get_page_no(undo_page);
|
||||
|
||||
offset = trx_undo_header_create(undo_page, trx_id, mtr);
|
||||
|
|
Loading…
Reference in a new issue