diff options
author | Aleksey Midenkov <midenok@gmail.com> | 2020-04-27 16:36:03 +0300 |
---|---|---|
committer | Aleksey Midenkov <midenok@gmail.com> | 2020-04-27 16:36:03 +0300 |
commit | e174fa9d791a1761fc8b2f92a6ab72f44a9dfc33 (patch) | |
tree | f1c7f09665d84ed4cc4486384f9d95a8a52c50e7 /sql/sql_partition.cc | |
parent | fbe2712705d464bf8488df249c36115e2c1f63f7 (diff) | |
download | mariadb-git-e174fa9d791a1761fc8b2f92a6ab72f44a9dfc33.tar.gz |
MDEV-22207 Drop default history partitions renders table inaccessible
This is continuation of MDEV-22153 bug when contiguity of history
partitions is broken. ha_partition::open_read_partitions() can not
handle non-contiguous list of default partitions.
Fix: when default partition is dropped convert list of partitions to
non-default.
Diffstat (limited to 'sql/sql_partition.cc')
-rw-r--r-- | sql/sql_partition.cc | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sql/sql_partition.cc b/sql/sql_partition.cc index d6c7066e655..66860762f08 100644 --- a/sql/sql_partition.cc +++ b/sql/sql_partition.cc @@ -5379,6 +5379,7 @@ that are reorganised. my_error(ER_VERS_WRONG_PARTS, MYF(0), table->s->table_name.str); goto err; } + tab_part_info->use_default_partitions= false; } else { |