summaryrefslogtreecommitdiff
path: root/sql/sql_table.cc
diff options
context:
space:
mode:
authorMarko Mäkelä <marko.makela@mariadb.com>2021-07-02 17:00:05 +0300
committerMarko Mäkelä <marko.makela@mariadb.com>2021-07-02 17:00:05 +0300
commit0ad8a825a8901d4b5e704fed3fc65e93cea18f18 (patch)
tree69238e9b52a7166b603e3ebbb2c7ea1b616765ed /sql/sql_table.cc
parent315380a4d16ddb16461d906a23be341e354c30ed (diff)
parent779262842edf86c989c099c6930ae4683cbde609 (diff)
downloadmariadb-git-0ad8a825a8901d4b5e704fed3fc65e93cea18f18.tar.gz
Merge 10.5 into 10.6
Diffstat (limited to 'sql/sql_table.cc')
-rw-r--r--sql/sql_table.cc10
1 files changed, 7 insertions, 3 deletions
diff --git a/sql/sql_table.cc b/sql/sql_table.cc
index 24ad0bd4676..9610e795f7a 100644
--- a/sql/sql_table.cc
+++ b/sql/sql_table.cc
@@ -10155,9 +10155,13 @@ do_continue:;
if (alter_info->requested_lock == Alter_info::ALTER_TABLE_LOCK_NONE)
ha_alter_info.online= true;
// Ask storage engine whether to use copy or in-place
- ha_alter_info.inplace_supported=
- table->file->check_if_supported_inplace_alter(&altered_table,
- &ha_alter_info);
+ {
+ Check_level_instant_set check_level_save(thd, CHECK_FIELD_WARN);
+ ha_alter_info.inplace_supported=
+ table->file->check_if_supported_inplace_alter(&altered_table,
+ &ha_alter_info);
+ }
+
if (ha_alter_info.inplace_supported != HA_ALTER_INPLACE_NOT_SUPPORTED)
{
List_iterator<Key> it(alter_info->key_list);