mirror of
https://github.com/MariaDB/server.git
synced 2025-07-30 16:24:05 +03:00
Unlock tables on BEGIN
sql-bench/test-create.sh: Made --small-test a bit faster sql/ha_innobase.cc: Cleanup memory at exit sql/mysqld.cc: Remove debug notes at shutdown
This commit is contained in:
@ -2120,6 +2120,12 @@ mysql_execute_command(void)
|
||||
break;
|
||||
|
||||
case SQLCOM_BEGIN:
|
||||
if (thd->locked_tables)
|
||||
{
|
||||
thd->lock=thd->locked_tables;
|
||||
thd->locked_tables=0; // Will be automaticly closed
|
||||
close_thread_tables(thd); // Free tables
|
||||
}
|
||||
if (end_active_trans(thd))
|
||||
{
|
||||
res= -1;
|
||||
|
Reference in New Issue
Block a user