Commit 28c75ed0 authored by Zardosht Kasheff's avatar Zardosht Kasheff Committed by Yoni Fogel

[t:3365], restore old check_if_incompatible_data function

git-svn-id: file:///svn/mysql/tokudb-engine/tokudb-engine@29288 c7de825b-a66e-492c-adef-691d508d4ae1
parent a69bade7
...@@ -2919,14 +2919,21 @@ int ha_tokudb::cmp_ref(const uchar * ref1, const uchar * ref2) { ...@@ -2919,14 +2919,21 @@ int ha_tokudb::cmp_ref(const uchar * ref1, const uchar * ref2) {
} }
bool ha_tokudb::check_if_incompatible_data(HA_CREATE_INFO * info, uint table_changes) { bool ha_tokudb::check_if_incompatible_data(HA_CREATE_INFO * info, uint table_changes) {
// //
// This is a horrendous hack for now, as copied by InnoDB. // This is a horrendous hack for now, as copied by InnoDB.
// This states that if the auto increment create field has changed, // This states that if the auto increment create field has changed,
// via a "alter table foo auto_increment=new_val", that this // via a "alter table foo auto_increment=new_val", that this
// change is incompatible, and to rebuild the entire table // change is incompatible, and to rebuild the entire table
// This will need to be fixed // This will need to be fixed
// //
if ((info->used_fields & HA_CREATE_USED_AUTO) &&
info->auto_increment_value != 0) {
return COMPATIBLE_DATA_NO;
}
if (table_changes != IS_EQUAL_YES)
return COMPATIBLE_DATA_NO; return COMPATIBLE_DATA_NO;
return COMPATIBLE_DATA_YES;
} }
// //
......
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