summaryrefslogtreecommitdiff
path: root/sql/sql_class.cc
diff options
context:
space:
mode:
authorMonty <monty@mariadb.org>2020-09-25 13:38:48 +0300
committerMonty <monty@mariadb.org>2020-09-25 13:38:48 +0300
commit71a7b79bcbfe90c3118e3d4379ad734dc72c9f39 (patch)
tree0b47566c39c78217058c5a4ee5213b0c648fb158 /sql/sql_class.cc
parentbb2c958132a12a049163564b7a6e6d4da8e2851a (diff)
downloadmariadb-git-71a7b79bcbfe90c3118e3d4379ad734dc72c9f39.tar.gz
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.
Diffstat (limited to 'sql/sql_class.cc')
-rw-r--r--sql/sql_class.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/sql/sql_class.cc b/sql/sql_class.cc
index 4986889b3c8..e57196ee056 100644
--- a/sql/sql_class.cc
+++ b/sql/sql_class.cc
@@ -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,