MDEV-33046 fixup. Do not try to schedule timer without dict_stats_start()

dict_stats_schedule() is executed for --innodb-force-recovery=3+,
but timer is not created.
This commit is contained in:
Vladislav Vaintroub 2023-12-21 19:20:18 +01:00
parent 7cc332b724
commit 569381df83

View File

@ -428,8 +428,8 @@ void dict_stats_start()
static void dict_stats_schedule(int ms)
{
DBUG_ASSERT(dict_stats_timer);
dict_stats_timer->set_time(ms,0);
if(dict_stats_timer)
dict_stats_timer->set_time(ms,0);
}
void dict_stats_schedule_now()