[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
This commit is contained in:
Zardosht Kasheff 2013-04-17 00:02:02 -04:00 committed by Yoni Fogel
parent 676bf24e5b
commit 476012e45b

View file

@ -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;