mirror of
https://github.com/MariaDB/server.git
synced 2025-01-29 10:14:19 +01:00
ha_innobase.cc Fix autocommit in ha_innobase.cc
sql/ha_innobase.cc: Fix autocommit in ha_innobase.cc
This commit is contained in:
parent
8ae89bb7ed
commit
0e8f420fd2
1 changed files with 6 additions and 0 deletions
|
@ -2031,6 +2031,12 @@ ha_innobase::external_lock(
|
|||
trx->n_mysql_tables_in_use++;
|
||||
} else {
|
||||
trx->n_mysql_tables_in_use--;
|
||||
|
||||
if (trx->n_mysql_tables_in_use == 0 &&
|
||||
!(thd->options
|
||||
& (OPTION_NOT_AUTO_COMMIT | OPTION_BEGIN))) {
|
||||
innobase_commit(thd, trx);
|
||||
}
|
||||
}
|
||||
|
||||
DBUG_RETURN(error);
|
||||
|
|
Loading…
Add table
Reference in a new issue