Another related issue is that fix_max_connections() (called when extra_max_connections is updated dynamically) would use the global max_connections value in the call to resize_thr_alarm().
Another related issue is that fix_max_ connections( ) (called when extra_max_ connections is updated dynamically) would use the global max_connections value in the call to resize_thr_alarm().