mirror of
https://github.com/MariaDB/server.git
synced 2025-07-29 05:21:33 +03:00
Added asssert to init_of_queries() to make it more safe
Part of review of 10.4 code by Sergei. Other things: - Changed return type if is_active() from my_bool to bool as this is only used by C++ code.
This commit is contained in:
@ -1386,6 +1386,7 @@ void THD::init_for_queries()
|
||||
We don't need to call ha_enable_transaction() as we can't have
|
||||
any active transactions that has to be committed
|
||||
*/
|
||||
DBUG_ASSERT(transaction.is_empty());
|
||||
transaction.on= TRUE;
|
||||
|
||||
reset_root_defaults(mem_root, variables.query_alloc_block_size,
|
||||
|
Reference in New Issue
Block a user