mirror of
https://github.com/MariaDB/server.git
synced 2025-01-31 02:51:44 +01:00
refs #5429, disable hot row format alter on mainline for mariadb 5.5. Still need to merge to 6.1.1 and need to do this properly for #5431
git-svn-id: file:///svn/mysql/tokudb-engine/tokudb-engine@47365 c7de825b-a66e-492c-adef-691d508d4ae1
This commit is contained in:
parent
c807ea79a7
commit
50bec4666e
1 changed files with 5 additions and 3 deletions
|
@ -133,7 +133,6 @@ ha_tokudb::check_if_supported_inplace_alter(TABLE *altered_table, Alter_inplace_
|
|||
|
||||
THD *thd = ha_thd();
|
||||
enum_alter_inplace_result result = HA_ALTER_INPLACE_NOT_SUPPORTED; // default is NOT inplace
|
||||
HA_CREATE_INFO *create_info = ha_alter_info->create_info;
|
||||
|
||||
ulong handler_flags = fix_handler_flags(ha_alter_info, table, altered_table);
|
||||
|
||||
|
@ -210,8 +209,10 @@ ha_tokudb::check_if_supported_inplace_alter(TABLE *altered_table, Alter_inplace_
|
|||
}
|
||||
result = HA_ALTER_INPLACE_EXCLUSIVE_LOCK;
|
||||
}
|
||||
} else
|
||||
if (only_flags(handler_flags, Alter_inplace_info::CHANGE_CREATE_OPTION)) {
|
||||
}
|
||||
#ifndef MARIADB_BASE_VERSION
|
||||
else if (only_flags(handler_flags, Alter_inplace_info::CHANGE_CREATE_OPTION)) {
|
||||
HA_CREATE_INFO *create_info = ha_alter_info->create_info;
|
||||
// alter auto_increment
|
||||
if (only_flags(create_info->used_fields, HA_CREATE_USED_AUTO)) {
|
||||
result = HA_ALTER_INPLACE_EXCLUSIVE_LOCK;
|
||||
|
@ -221,6 +222,7 @@ ha_tokudb::check_if_supported_inplace_alter(TABLE *altered_table, Alter_inplace_
|
|||
result = HA_ALTER_INPLACE_EXCLUSIVE_LOCK;
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
// turn not supported into error if the slow alter table (copy) is disabled
|
||||
if (result == HA_ALTER_INPLACE_NOT_SUPPORTED && get_disable_slow_alter(thd)) {
|
||||
|
|
Loading…
Add table
Reference in a new issue