1
0
mirror of https://github.com/MariaDB/server.git synced 2025-08-01 03:47:19 +03:00

thd->m_transaction_psi was not properly cleared for new connections

This happend when using XA transactions. I also added some extra asserts
to ensure that m_transactions are properly cleared.

Other things:
- Removed set_time() from THD::init_for_queries() as dispatch_command()
  is already doing that.
- Removed duplicate init_for_queries() from prepare_new_connection_state().
  The init_for_queries() functions should only be called once per
  connection.
This commit is contained in:
Monty
2020-07-22 17:57:07 +03:00
parent dbcd3384e0
commit ce699df905
4 changed files with 12 additions and 3 deletions

View File

@ -1279,7 +1279,6 @@ void prepare_new_connection_state(THD* thd)
}
thd->proc_info=0;
thd->init_for_queries();
}
}