mirror of
https://github.com/MariaDB/server.git
synced 2025-01-16 12:02:42 +01:00
trx_validate_state_before_free(): Add debug assertions
This commit is contained in:
parent
bb60a832ed
commit
8143ef1b7c
1 changed files with 5 additions and 1 deletions
|
@ -548,6 +548,10 @@ static
|
|||
void
|
||||
trx_validate_state_before_free(trx_t* trx)
|
||||
{
|
||||
ut_ad(!trx->declared_to_be_inside_innodb);
|
||||
ut_ad(!trx->n_mysql_tables_in_use);
|
||||
ut_ad(!trx->mysql_n_tables_locked);
|
||||
|
||||
if (trx->declared_to_be_inside_innodb) {
|
||||
|
||||
ib::error() << "Freeing a trx (" << trx << ", "
|
||||
|
@ -558,7 +562,7 @@ trx_validate_state_before_free(trx_t* trx)
|
|||
putc('\n', stderr);
|
||||
|
||||
/* This is an error but not a fatal error. We must keep
|
||||
the counters like srv_conc_n_threads accurate. */
|
||||
the counters like srv_conc.n_active accurate. */
|
||||
srv_conc_force_exit_innodb(trx);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue