mirror of
https://github.com/MariaDB/server.git
synced 2025-12-24 11:21:21 +03:00
Bug #69682 - mysqld crashes after uninstall of plugin with "first" status var
This commit is contained in:
@@ -2199,12 +2199,11 @@ void remove_status_vars(SHOW_VAR *list)
|
||||
{
|
||||
pthread_mutex_lock(&LOCK_status);
|
||||
SHOW_VAR *all= dynamic_element(&all_status_vars, 0, SHOW_VAR *);
|
||||
int a= 0, b= all_status_vars.elements, c= (a+b)/2;
|
||||
|
||||
for (; list->name; list++)
|
||||
{
|
||||
int res= 0;
|
||||
for (a= 0, b= all_status_vars.elements; b-a > 1; c= (a+b)/2)
|
||||
int res= 0, a= 0, b= all_status_vars.elements, c= (a+b)/2;
|
||||
for (; b-a > 0; c= (a+b)/2)
|
||||
{
|
||||
res= show_var_cmp(list, all+c);
|
||||
if (res < 0)
|
||||
|
||||
Reference in New Issue
Block a user