diff options
Diffstat (limited to 'storage/xtradb/handler/handler0alter.cc')
-rw-r--r-- | storage/xtradb/handler/handler0alter.cc | 13 |
1 files changed, 3 insertions, 10 deletions
diff --git a/storage/xtradb/handler/handler0alter.cc b/storage/xtradb/handler/handler0alter.cc index ef2478bd239..bf7ffa9180a 100644 --- a/storage/xtradb/handler/handler0alter.cc +++ b/storage/xtradb/handler/handler0alter.cc @@ -324,16 +324,9 @@ ha_innobase::check_if_supported_inplace_alter( if (new_options->page_compressed != old_options->page_compressed || new_options->page_compression_level != old_options->page_compression_level || - new_options->atomic_writes != old_options->atomic_writes) { - ha_alter_info->unsupported_reason = innobase_get_err_msg( - ER_ALTER_OPERATION_NOT_SUPPORTED_REASON); - DBUG_RETURN(HA_ALTER_INPLACE_NOT_SUPPORTED); - } - - if (new_options->encryption != old_options->encryption || - new_options->encryption_key_id != old_options->encryption_key_id) { - ha_alter_info->unsupported_reason = innobase_get_err_msg( - ER_ALTER_OPERATION_NOT_SUPPORTED_REASON); + new_options->atomic_writes != old_options->atomic_writes || + new_options->encryption != old_options->encryption || + new_options->encryption_key_id != old_options->encryption_key_id) { DBUG_RETURN(HA_ALTER_INPLACE_NOT_SUPPORTED); } } |