mirror of
https://github.com/MariaDB/server.git
synced 2026-04-26 18:25:30 +02:00
Bug #14017206 WITH CONSISTENT SNAPSHOT DOES NOT WORK WITH ISOLATION LEVEL
SERIALIZABLE Problem: The documentation claims that WITH CONSISTENT SNAPSHOT will work for both REPEATABLE READ and SERIALIZABLE isolation levels. But it will work only for REPEATABLE READ isolation level. Also, the clause WITH CONSISTENT SNAPSHOT is silently ignored when it is not applicable to the given isolation level. Solution: Generate a warning when the clause WITH CONSISTENT SNAPSHOT is ignored. rb#2797 approved by Kevin. Note: Support team wanted to push this to 5.5+.
This commit is contained in:
parent
49056074cc
commit
64c58c13d5
2 changed files with 31 additions and 2 deletions
|
|
@ -3552,6 +3552,10 @@ extern "C" unsigned long thd_get_thread_id(const MYSQL_THD thd)
|
|||
return((unsigned long)thd->thread_id);
|
||||
}
|
||||
|
||||
extern "C" enum_tx_isolation thd_get_trx_isolation(const MYSQL_THD thd)
|
||||
{
|
||||
return thd->tx_isolation;
|
||||
}
|
||||
|
||||
#ifdef INNODB_COMPATIBILITY_HOOKS
|
||||
extern "C" struct charset_info_st *thd_charset(MYSQL_THD thd)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue