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

refs #5429, make fix for mariadb-5.2.10

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