valgrind error fix
This commit is contained in:
parent
9cf5f2c94a
commit
8010d9872d
@ -2261,9 +2261,12 @@ int ha_partition::open(const char *name, int mode, uint test_if_locked)
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* Initialise the bitmap we use to determine what partitions are used */
|
/* Initialise the bitmap we use to determine what partitions are used */
|
||||||
if (bitmap_init(&(m_part_info->used_partitions), NULL, m_tot_parts, TRUE))
|
if (!is_clone)
|
||||||
DBUG_RETURN(1);
|
{
|
||||||
bitmap_set_all(&(m_part_info->used_partitions));
|
if (bitmap_init(&(m_part_info->used_partitions), NULL, m_tot_parts, TRUE))
|
||||||
|
DBUG_RETURN(1);
|
||||||
|
bitmap_set_all(&(m_part_info->used_partitions));
|
||||||
|
}
|
||||||
|
|
||||||
/* Recalculate table flags as they may change after open */
|
/* Recalculate table flags as they may change after open */
|
||||||
m_table_flags= m_file[0]->table_flags();
|
m_table_flags= m_file[0]->table_flags();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user