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

[t:4140], make fix

git-svn-id: file:///svn/mysql/tokudb-engine/tokudb-engine@36948 c7de825b-a66e-492c-adef-691d508d4ae1
parent 8f36c931
......@@ -5724,7 +5724,7 @@ int ha_tokudb::create_txn(THD* thd, tokudb_trx_data* trx) {
u_int32_t txn_begin_flags;
if (trx->all == NULL) {
txn_begin_flags = toku_iso_to_txn_flag(toku_iso_level);
if (txn_begin_flags == 0 && is_autocommit) {
if (txn_begin_flags == 0 && is_autocommit && thd_sql_command(thd) == SQLCOM_SELECT) {
txn_begin_flags = DB_TXN_SNAPSHOT;
}
}
......
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