summaryrefslogtreecommitdiff
path: root/sql/partition_info.cc
diff options
context:
space:
mode:
authorAlexander Barkov <bar@mariadb.org>2017-11-29 12:06:48 +0400
committerAlexander Barkov <bar@mariadb.org>2017-11-29 12:06:48 +0400
commit5b697c5a23ed7322b5b746b61e3ec66b510ca134 (patch)
tree22f086fad2685d1a45b8531f96f30ed7fabb7554 /sql/partition_info.cc
parente01d33d773abbffad0ea1739f0e04816eecce89d (diff)
parentb65fd73bb19578148e41d788504ae18812c2cb43 (diff)
downloadmariadb-git-5b697c5a23ed7322b5b746b61e3ec66b510ca134.tar.gz
Merge remote-tracking branch 'origin/10.2' into bb-10.2-ext
Diffstat (limited to 'sql/partition_info.cc')
-rw-r--r--sql/partition_info.cc3
1 files changed, 1 insertions, 2 deletions
diff --git a/sql/partition_info.cc b/sql/partition_info.cc
index 47fb60ea12a..1224c1bf9f3 100644
--- a/sql/partition_info.cc
+++ b/sql/partition_info.cc
@@ -42,13 +42,12 @@ partition_info *partition_info::get_clone(THD *thd)
List_iterator<partition_element> part_it(partitions);
partition_element *part;
- partition_info *clone= new (mem_root) partition_info();
+ partition_info *clone= new (mem_root) partition_info(*this);
if (!clone)
{
mem_alloc_error(sizeof(partition_info));
DBUG_RETURN(NULL);
}
- memcpy(clone, this, sizeof(partition_info));
memset(&(clone->read_partitions), 0, sizeof(clone->read_partitions));
memset(&(clone->lock_partitions), 0, sizeof(clone->lock_partitions));
clone->bitmaps_are_initialized= FALSE;