Skip to content

Commit ff8bf6e

Browse files
committed
Define a mtr_t::start() wrapper inline.
1 parent c32dcae commit ff8bf6e

File tree

2 files changed

+4
-10
lines changed

2 files changed

+4
-10
lines changed

storage/innobase/include/mtr0mtr.h

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,10 @@ struct mtr_t {
239239
/** Start a mini-transaction.
240240
@param sync true if it is a synchronous mini-transaction
241241
@param read_only true if read only mini-transaction */
242-
void start(bool sync = true, bool read_only = false);
242+
void start(bool sync = true, bool read_only = false)
243+
{
244+
start(NULL, sync, read_only);
245+
}
243246

244247
/** Start a mini-transaction.
245248
@param sync true if it is a synchronous mini-transaction

storage/innobase/mtr/mtr0mtr.cc

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -491,15 +491,6 @@ mtr_write_log(
491491
log_close();
492492
}
493493

494-
/** Start a mini-transaction.
495-
@param sync true if it is a synchronous mini-transaction
496-
@param read_only true if read only mini-transaction */
497-
void
498-
mtr_t::start(bool sync, bool read_only)
499-
{
500-
start(NULL, sync, read_only);
501-
}
502-
503494
/** Start a mini-transaction.
504495
@param sync true if it is a synchronous mini-transaction
505496
@param read_only true if read only mini-transaction */

0 commit comments

Comments
 (0)