mtr_t::start(): Remove unused parameters

The parameters bool sync=true, bool read_only=false of mtr_t::start()
were added in
eca5b0fc17
(MySQL 5.7.3).

The parameter read_only was never used anywhere.
The parameter sync was only copied around, and would be returned
by the unused function mtr_t::is_async().

We do not need this dead code in MariaDB.
This commit is contained in:
Marko Mäkelä 2018-11-01 10:48:56 +02:00
commit abcd09c95a
5 changed files with 14 additions and 60 deletions

View file

@ -1838,9 +1838,6 @@ trx_commit_low(
bool serialised;
if (mtr != NULL) {
mtr->set_sync();
serialised = trx_write_serialisation_history(trx, mtr);
/* The following call commits the mini-transaction, making the
@ -1905,7 +1902,7 @@ trx_commit(
if (trx->has_logged()) {
mtr = &local_mtr;
mtr_start_sync(mtr);
mtr->start();
} else {
mtr = NULL;
@ -2566,7 +2563,7 @@ trx_prepare_low(trx_t* trx)
trx_rseg_t* rseg = trx->rsegs.m_redo.rseg;
mtr.start(true);
mtr.start();
/* Change the undo log segment states from TRX_UNDO_ACTIVE to
TRX_UNDO_PREPARED: these modifications to the file data