summaryrefslogtreecommitdiff
path: root/sql/handler.h
diff options
context:
space:
mode:
authorThirunarayanan Balathandayuthapani <thiru@mariadb.com>2021-11-11 12:56:33 +0530
committerThirunarayanan Balathandayuthapani <thiru@mariadb.com>2021-11-11 15:12:30 +0530
commit33b64f89803042849b16089754506532a46a7eff (patch)
tree2e8f583e45f453fd04c87541e8642981ac1eb3ba /sql/handler.h
parent3480c3f95b27c8f3e6f4ecbe6262e5b80109c0d4 (diff)
downloadmariadb-git-bb-10.6-MDEV-23805.tar.gz
MDEV-23805 Make Online DDL to Instant DDL when table is emptybb-10.6-MDEV-23805
- In ha_innobase::prepare_inplace_alter_table(), InnoDB should check whether the table is empty. If the table is empty then server should avoid downgrading the MDL after prepare phase. It is more like instant alter, does change only in dicationary and metadata. - Changed few debug test case to make non-empty DDL table
Diffstat (limited to 'sql/handler.h')
-rw-r--r--sql/handler.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/sql/handler.h b/sql/handler.h
index 5fe06ecd0bc..f8ae517b19b 100644
--- a/sql/handler.h
+++ b/sql/handler.h
@@ -2700,6 +2700,9 @@ public:
/** true when InnoDB should abort the alter when table is not empty */
const bool error_if_not_empty;
+ /** True when InnoDB should avoid downgrading the MDL */
+ bool mdl_exclusive_after_prepare= false;
+
Alter_inplace_info(HA_CREATE_INFO *create_info_arg,
Alter_info *alter_info_arg,
KEY *key_info_arg, uint key_count_arg,