Remove compiler warning about unused variables
This commit is contained in:
parent
863c3eda87
commit
131c318b16
@ -900,10 +900,12 @@ void partition_info::vers_check_limit(THD *thd)
|
|||||||
bitmap_set_all(), but this is not optimal since there can be quite a number
|
bitmap_set_all(), but this is not optimal since there can be quite a number
|
||||||
of partitions.
|
of partitions.
|
||||||
*/
|
*/
|
||||||
|
#ifndef DBUG_OFF
|
||||||
const uint32 sub_factor= num_subparts ? num_subparts : 1;
|
const uint32 sub_factor= num_subparts ? num_subparts : 1;
|
||||||
uint32 part_id= vers_info->hist_part->id * sub_factor;
|
uint32 part_id= vers_info->hist_part->id * sub_factor;
|
||||||
const uint32 part_id_end= part_id + sub_factor;
|
const uint32 part_id_end= part_id + sub_factor;
|
||||||
DBUG_ASSERT(part_id_end <= num_parts * sub_factor);
|
DBUG_ASSERT(part_id_end <= num_parts * sub_factor);
|
||||||
|
#endif
|
||||||
|
|
||||||
ha_partition *hp= (ha_partition*)(table->file);
|
ha_partition *hp= (ha_partition*)(table->file);
|
||||||
ha_rows hist_rows= hp->part_records(vers_info->hist_part);
|
ha_rows hist_rows= hp->part_records(vers_info->hist_part);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user