Commit b6872ded authored by Zardosht Kasheff's avatar Zardosht Kasheff Committed by Yoni Fogel

refs #6057, remove read-only transaction work from handlerton

git-svn-id: file:///svn/mysql/tokudb-engine/tokudb-engine@53465 c7de825b-a66e-492c-adef-691d508d4ae1
parent 528df9e2
......@@ -5963,9 +5963,6 @@ 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 && lock.type <= TL_READ_NO_INSERT) {
txn_begin_flags |= DB_TXN_READ_ONLY;
}
}
else {
txn_begin_flags = DB_INHERIT_ISOLATION;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment