Commit 8055a7b3 authored by sunny's avatar sunny

Fix for Bug# 21409. At low transaction isolation levels we let each

consistent read set its own snapshot
parent ce14c904
...@@ -6856,6 +6856,16 @@ ha_innobase::store_lock( ...@@ -6856,6 +6856,16 @@ ha_innobase::store_lock(
trx->isolation_level = innobase_map_isolation_level( trx->isolation_level = innobase_map_isolation_level(
(enum_tx_isolation) (enum_tx_isolation)
thd->variables.tx_isolation); thd->variables.tx_isolation);
if (trx->isolation_level <= TRX_ISO_READ_COMMITTED
&& trx->global_read_view) {
/* At low transaction isolation levels we let
each consistent read set its own snapshot */
read_view_close_for_mysql(trx);
}
} }
const bool in_lock_tables = thd_in_lock_tables(thd); const bool in_lock_tables = thd_in_lock_tables(thd);
......
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