Commit ab51c02d authored by Zardosht Kasheff's avatar Zardosht Kasheff Committed by Yoni Fogel

refs #5431, fix handlerton in mariadb-5.2.10

git-svn-id: file:///svn/mysql/tokudb-engine/tokudb-engine@47683 c7de825b-a66e-492c-adef-691d508d4ae1
parent 0f75aae2
...@@ -211,9 +211,7 @@ ha_tokudb::check_if_supported_alter(TABLE *altered_table, ...@@ -211,9 +211,7 @@ ha_tokudb::check_if_supported_alter(TABLE *altered_table,
// Check if the row format (read: compression) has // Check if the row format (read: compression) has
// changed as part of this alter statment. // changed as part of this alter statment.
#ifndef MARIADB_BASE_VERSION
bool has_row_format_changes = alter_flags->is_set(HA_ALTER_ROW_FORMAT); bool has_row_format_changes = alter_flags->is_set(HA_ALTER_ROW_FORMAT);
#endif
bool has_non_indexing_changes = false; bool has_non_indexing_changes = false;
bool has_non_dropped_changes = false; bool has_non_dropped_changes = false;
bool has_non_added_changes = false; bool has_non_added_changes = false;
...@@ -366,11 +364,9 @@ ha_tokudb::check_if_supported_alter(TABLE *altered_table, ...@@ -366,11 +364,9 @@ ha_tokudb::check_if_supported_alter(TABLE *altered_table,
else if (has_added_columns && !has_non_added_changes) { else if (has_added_columns && !has_non_added_changes) {
retval = HA_ALTER_SUPPORTED_WAIT_LOCK; retval = HA_ALTER_SUPPORTED_WAIT_LOCK;
} }
#ifndef MARIADB_BASE_VERSION
else if (has_row_format_changes && !has_non_row_format_changes && tables_have_same_keys_and_columns(table, altered_table, true)) { else if (has_row_format_changes && !has_non_row_format_changes && tables_have_same_keys_and_columns(table, altered_table, true)) {
retval = HA_ALTER_SUPPORTED_WAIT_LOCK; retval = HA_ALTER_SUPPORTED_WAIT_LOCK;
} }
#endif
else if (has_auto_inc_change && !has_non_auto_inc_change && tables_have_same_keys_and_columns(table, altered_table, true)) { else if (has_auto_inc_change && !has_non_auto_inc_change && tables_have_same_keys_and_columns(table, altered_table, true)) {
retval = HA_ALTER_SUPPORTED_WAIT_LOCK; retval = HA_ALTER_SUPPORTED_WAIT_LOCK;
} }
......
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