We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3422ceb commit 37dd3cfCopy full SHA for 37dd3cf
sql/partition_info.cc
@@ -42,13 +42,12 @@ partition_info *partition_info::get_clone(THD *thd)
42
43
List_iterator<partition_element> part_it(partitions);
44
partition_element *part;
45
- partition_info *clone= new (mem_root) partition_info();
+ partition_info *clone= new (mem_root) partition_info(*this);
46
if (!clone)
47
{
48
mem_alloc_error(sizeof(partition_info));
49
DBUG_RETURN(NULL);
50
}
51
- memcpy(clone, this, sizeof(partition_info));
52
memset(&(clone->read_partitions), 0, sizeof(clone->read_partitions));
53
memset(&(clone->lock_partitions), 0, sizeof(clone->lock_partitions));
54
clone->bitmaps_are_initialized= FALSE;
0 commit comments