Commit 300cefb2 authored by Zardosht Kasheff's avatar Zardosht Kasheff Committed by Yoni Fogel

[t:2811], return HA_ERR_TABLE_DEF_CHANGED in index_init when TOKUDB_MVCC_DICTIONARY_TOO_NEW

git-svn-id: file:///svn/mysql/tokudb-engine/tokudb-engine@23654 c7de825b-a66e-492c-adef-691d508d4ae1
parent 19a34cd7
......@@ -4099,6 +4099,7 @@ int ha_tokudb::index_init(uint keynr, bool sorted) {
cursor_flags = get_cursor_isolation_flags(lock.type, thd);
if ((error = share->key_file[keynr]->cursor(share->key_file[keynr], transaction, &cursor, cursor_flags))) {
if (error == TOKUDB_MVCC_DICTIONARY_TOO_NEW) {
error = HA_ERR_TABLE_DEF_CHANGED;
my_error(ER_TABLE_DEF_CHANGED, MYF(0));
}
table->status = STATUS_NOT_FOUND;
......
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