MDEV-30525: Assertion `ranges > 0' fails in IO_AND_CPU_COST handler::keyread_time
Make get_best_group_min_max() exit early if the table has table->records()=0. Attempting to compute loose scan over 0 groups eventually causes an assert when trying to get the cost of reading 0 ranges.
Showing
Please register or sign in to comment