diff options
author | Thirunarayanan Balathandayuthapani <thiru@mariadb.com> | 2021-11-09 16:26:29 +0530 |
---|---|---|
committer | Thirunarayanan Balathandayuthapani <thiru@mariadb.com> | 2021-11-09 16:28:12 +0530 |
commit | 370eb8ff7d7fccdffbf13bf690bb8aaaaf72352d (patch) | |
tree | b8beddb05d1f23c95c805d825f266784b8718aa2 /sql/handler.h | |
parent | 06988bdcaa2d1af2c178c199b7f65dbafda45a2c (diff) | |
download | mariadb-git-bb-10.7-MDEV-23805.tar.gz |
MDEV-23805 Make Online DDL to Instant DDL when table is emptybb-10.7-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.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/sql/handler.h b/sql/handler.h index 3303b8fe9e0..57b9f87fedd 100644 --- a/sql/handler.h +++ b/sql/handler.h @@ -2625,6 +2625,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 no_downgrade_if_empty; + Alter_inplace_info(HA_CREATE_INFO *create_info_arg, Alter_info *alter_info_arg, KEY *key_info_arg, uint key_count_arg, |