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 863c3ed commit 131c318Copy full SHA for 131c318
sql/partition_info.cc
@@ -900,10 +900,12 @@ void partition_info::vers_check_limit(THD *thd)
900
bitmap_set_all(), but this is not optimal since there can be quite a number
901
of partitions.
902
*/
903
+#ifndef DBUG_OFF
904
const uint32 sub_factor= num_subparts ? num_subparts : 1;
905
uint32 part_id= vers_info->hist_part->id * sub_factor;
906
const uint32 part_id_end= part_id + sub_factor;
907
DBUG_ASSERT(part_id_end <= num_parts * sub_factor);
908
+#endif
909
910
ha_partition *hp= (ha_partition*)(table->file);
911
ha_rows hist_rows= hp->part_records(vers_info->hist_part);
0 commit comments