summaryrefslogtreecommitdiff
path: root/storage/innobase/trx/trx0trx.cc
diff options
context:
space:
mode:
Diffstat (limited to 'storage/innobase/trx/trx0trx.cc')
-rw-r--r--storage/innobase/trx/trx0trx.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/storage/innobase/trx/trx0trx.cc b/storage/innobase/trx/trx0trx.cc
index 0bc81ad56da..30d8d0cb3a6 100644
--- a/storage/innobase/trx/trx0trx.cc
+++ b/storage/innobase/trx/trx0trx.cc
@@ -1420,7 +1420,8 @@ TRANSACTIONAL_TARGET void trx_t::commit_low(mtr_t *mtr)
if (mtr)
{
- apply_log();
+ if (UNIV_UNLIKELY(apply_online_log))
+ apply_log();
trx_write_serialisation_history(this, mtr);
/* The following call commits the mini-transaction, making the