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

consistent read set its own snapshot
This commit is contained in:
sunny 2007-03-05 00:37:57 +00:00
parent ce14c9041e
commit 8055a7b3c2

View file

@ -6856,6 +6856,16 @@ ha_innobase::store_lock(
trx->isolation_level = innobase_map_isolation_level(
(enum_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);