Commit 9ed7a091 authored by Zardosht Kasheff's avatar Zardosht Kasheff Committed by Yoni Fogel

[t:2908], make the checksum command take a snapshot transaction

git-svn-id: file:///svn/mysql/tokudb-engine/tokudb-engine@23837 c7de825b-a66e-492c-adef-691d508d4ae1
parent d2f8bb18
......@@ -5406,7 +5406,13 @@ u_int32_t ha_tokudb::get_cursor_isolation_flags(enum thr_lock_type lock_type, TH
uint sql_command = thd_sql_command(thd);
bool in_lock_tables = thd_in_lock_tables(thd);
if ((lock_type == TL_READ && in_lock_tables) ||
//
// following InnoDB's lead and having checksum command use a snapshot read if told
//
if (sql_command == SQLCOM_CHECKSUM) {
return 0;
}
else if ((lock_type == TL_READ && in_lock_tables) ||
(lock_type == TL_READ_HIGH_PRIORITY && in_lock_tables) ||
sql_command != SQLCOM_SELECT)
{
......
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