MDEV-35554 runtime error: call to function show_cached_thread_count()
through pointer to incorrect function type. The argument is void* rather than char* and was missing system_status_var * as an argument. This shows up with UBSAN testing under clang. Reviewer: Brandon Nesterenko
This commit is contained in:
parent
82fd202fa4
commit
f60a8a680e
@ -7363,8 +7363,8 @@ static int show_threadpool_threads(THD *, SHOW_VAR *var, void *buff,
|
||||
#endif
|
||||
|
||||
|
||||
static int show_cached_thread_count(THD *thd, SHOW_VAR *var, char *buff,
|
||||
enum enum_var_type scope)
|
||||
static int show_cached_thread_count(THD *thd, SHOW_VAR *var, void *buff,
|
||||
system_status_var *, enum enum_var_type scope)
|
||||
{
|
||||
var->type= SHOW_LONG;
|
||||
var->value= buff;
|
||||
|
Loading…
x
Reference in New Issue
Block a user