summaryrefslogtreecommitdiff
path: root/sql/ha_partition.cc
diff options
context:
space:
mode:
authorAleksey Midenkov <midenok@gmail.com>2018-10-20 12:49:46 +0300
committerSergei Golubchik <serg@mariadb.org>2018-11-13 10:30:27 +0100
commit50bc55d462047281a4f74081a5325b64918494f1 (patch)
treef9baadb3b36abfef630b5b5868e71cbd043eee7a /sql/ha_partition.cc
parent6db773a5420fc7eedd6c02989967abbca3212143 (diff)
downloadmariadb-git-50bc55d462047281a4f74081a5325b64918494f1.tar.gz
MDEV-16241 Assertion `inited==RND' failed in handler::ha_rnd_end()
Discrepancy in open indexes due to overwritten `read_partitions` upon `ha_open()` in `ha_partition::clone()`. [Fixes tempesta-tech/mariadb#551]
Diffstat (limited to 'sql/ha_partition.cc')
-rw-r--r--sql/ha_partition.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/sql/ha_partition.cc b/sql/ha_partition.cc
index c985ada64e6..1349571a3f8 100644
--- a/sql/ha_partition.cc
+++ b/sql/ha_partition.cc
@@ -3516,7 +3516,8 @@ int ha_partition::open(const char *name, int mode, uint test_if_locked)
if (init_partition_bitmaps())
goto err_alloc;
- if (unlikely((error=
+ if (!MY_TEST(m_is_clone_of) &&
+ unlikely((error=
m_part_info->set_partition_bitmaps(m_partitions_to_open))))
goto err_alloc;