diff --git a/storage/innobase/trx/trx0trx.cc b/storage/innobase/trx/trx0trx.cc index 8dedb0d..5a1f564 100644 --- a/storage/innobase/trx/trx0trx.cc +++ b/storage/innobase/trx/trx0trx.cc @@ -3183,6 +3183,7 @@ trx_set_rw_mode( ut_ad(trx->rsegs.m_redo.rseg == 0); ut_ad(!trx->in_rw_trx_list); ut_ad(!trx_is_autocommit_non_locking(trx)); + ut_ad(!trx->read_only); if (srv_force_recovery >= SRV_FORCE_NO_TRX_UNDO) { return; @@ -3222,11 +3223,9 @@ trx_set_rw_mode( } #endif /* UNIV_DEBUG */ - if (!trx->read_only) { UT_LIST_ADD_FIRST(trx_sys->rw_trx_list, trx); ut_d(trx->in_rw_trx_list = true); - } mutex_exit(&trx_sys->mutex); }