File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -2843,6 +2843,7 @@ void trx_set_rw_mode(trx_t *trx) /*!< in/out: transaction that is RW */
2843
2843
ut_ad (trx->rsegs .m_redo .rseg == 0 );
2844
2844
ut_ad (!trx->in_rw_trx_list );
2845
2845
ut_ad (!trx_is_autocommit_non_locking (trx));
2846
+ ut_ad (!trx->read_only );
2846
2847
2847
2848
if (srv_force_recovery >= SRV_FORCE_NO_TRX_UNDO) {
2848
2849
return ;
@@ -2879,11 +2880,9 @@ void trx_set_rw_mode(trx_t *trx) /*!< in/out: transaction that is RW */
2879
2880
}
2880
2881
#endif /* UNIV_DEBUG */
2881
2882
2882
- if (!trx->read_only ) {
2883
- UT_LIST_ADD_FIRST (trx_sys->rw_trx_list , trx);
2883
+ UT_LIST_ADD_FIRST (trx_sys->rw_trx_list , trx);
2884
2884
2885
- ut_d (trx->in_rw_trx_list = true );
2886
- }
2885
+ ut_d (trx->in_rw_trx_list = true );
2887
2886
2888
2887
mutex_exit (&trx_sys->mutex );
2889
2888
}
You can’t perform that action at this time.
0 commit comments