mirror of
https://github.com/MariaDB/server.git
synced 2025-01-16 20:12:31 +01:00
closes #5899, fix stored functions
git-svn-id: file:///svn/mysql/tokudb-engine/tokudb-engine@52597 c7de825b-a66e-492c-adef-691d508d4ae1
This commit is contained in:
parent
6cbecd5340
commit
ee7cdd33a0
1 changed files with 1 additions and 1 deletions
|
@ -5885,7 +5885,7 @@ int ha_tokudb::create_txn(THD* thd, tokudb_trx_data* trx) {
|
|||
if (txn_begin_flags == 0 && is_autocommit && thd_sql_command(thd) == SQLCOM_SELECT) {
|
||||
txn_begin_flags = DB_TXN_SNAPSHOT;
|
||||
}
|
||||
if (is_autocommit && thd_sql_command(thd) == SQLCOM_SELECT && !thd->in_sub_stmt) {
|
||||
if (is_autocommit && thd_sql_command(thd) == SQLCOM_SELECT && !thd->in_sub_stmt && lock.type <= TL_READ_NO_INSERT) {
|
||||
txn_begin_flags |= DB_TXN_READ_ONLY;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue