Skip to content

Commit 131c318

Browse files
committed
Remove compiler warning about unused variables
1 parent 863c3ed commit 131c318

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

sql/partition_info.cc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -900,10 +900,12 @@ void partition_info::vers_check_limit(THD *thd)
900900
bitmap_set_all(), but this is not optimal since there can be quite a number
901901
of partitions.
902902
*/
903+
#ifndef DBUG_OFF
903904
const uint32 sub_factor= num_subparts ? num_subparts : 1;
904905
uint32 part_id= vers_info->hist_part->id * sub_factor;
905906
const uint32 part_id_end= part_id + sub_factor;
906907
DBUG_ASSERT(part_id_end <= num_parts * sub_factor);
908+
#endif
907909

908910
ha_partition *hp= (ha_partition*)(table->file);
909911
ha_rows hist_rows= hp->part_records(vers_info->hist_part);

0 commit comments

Comments
 (0)