summaryrefslogtreecommitdiff
path: root/sql
diff options
context:
space:
mode:
authorSergei Golubchik <serg@mariadb.org>2016-02-11 12:25:23 +0100
committerSergei Golubchik <serg@mariadb.org>2016-02-15 13:02:21 +0100
commit38b89a61c3ace83b32c079489922a0cae5106b56 (patch)
tree6da9b918888b6ba8479e296d7707cbb37b2c1394 /sql
parent3c6b771753d8666120fa3cb81d1586d214d85a58 (diff)
downloadmariadb-git-38b89a61c3ace83b32c079489922a0cae5106b56.tar.gz
MDEV-9103 Altering table comment does a full copy
following InnoDB's logic, altering a comment or a default field's value needs "NO_LOCK", not EXCLUSIVE
Diffstat (limited to 'sql')
-rw-r--r--sql/handler.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/sql/handler.cc b/sql/handler.cc
index 4294a1aaf72..51a608304aa 100644
--- a/sql/handler.cc
+++ b/sql/handler.cc
@@ -4236,7 +4236,7 @@ handler::check_if_supported_inplace_alter(TABLE *altered_table,
IS_EQUAL_PACK_LENGTH : IS_EQUAL_YES;
if (table->file->check_if_incompatible_data(create_info, table_changes)
== COMPATIBLE_DATA_YES)
- DBUG_RETURN(HA_ALTER_INPLACE_EXCLUSIVE_LOCK);
+ DBUG_RETURN(HA_ALTER_INPLACE_NO_LOCK);
DBUG_RETURN(HA_ALTER_INPLACE_NOT_SUPPORTED);
}