We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bb60a83 commit 8143ef1Copy full SHA for 8143ef1
storage/innobase/trx/trx0trx.cc
@@ -548,6 +548,10 @@ static
548
void
549
trx_validate_state_before_free(trx_t* trx)
550
{
551
+ ut_ad(!trx->declared_to_be_inside_innodb);
552
+ ut_ad(!trx->n_mysql_tables_in_use);
553
+ ut_ad(!trx->mysql_n_tables_locked);
554
+
555
if (trx->declared_to_be_inside_innodb) {
556
557
ib::error() << "Freeing a trx (" << trx << ", "
@@ -558,7 +562,7 @@ trx_validate_state_before_free(trx_t* trx)
558
562
putc('\n', stderr);
559
563
560
564
/* This is an error but not a fatal error. We must keep
561
- the counters like srv_conc_n_threads accurate. */
565
+ the counters like srv_conc.n_active accurate. */
566
srv_conc_force_exit_innodb(trx);
567
}
568
0 commit comments