MDEV-35653 Assertion `commit_trx' failed in int innobase_commit(handlerton*, THD*, bool)
cherry-pick adc1beb8680f from 11.7
This commit is contained in:
parent
31c06951c6
commit
da9d575516
@ -4653,10 +4653,9 @@ innobase_commit(
|
|||||||
ut_ad("invalid state" == 0);
|
ut_ad("invalid state" == 0);
|
||||||
/* fall through */
|
/* fall through */
|
||||||
case TRX_STATE_PREPARED:
|
case TRX_STATE_PREPARED:
|
||||||
ut_ad(commit_trx || trx->is_wsrep());
|
ut_ad(commit_trx ||
|
||||||
ut_ad(thd_test_options(thd, OPTION_NOT_AUTOCOMMIT
|
!thd_test_options(thd, OPTION_NOT_AUTOCOMMIT
|
||||||
| OPTION_BEGIN)
|
| OPTION_BEGIN));
|
||||||
|| trx->is_wsrep());
|
|
||||||
/* fall through */
|
/* fall through */
|
||||||
case TRX_STATE_ACTIVE:
|
case TRX_STATE_ACTIVE:
|
||||||
/* Transaction is deregistered only in a commit or a
|
/* Transaction is deregistered only in a commit or a
|
||||||
|
Loading…
x
Reference in New Issue
Block a user