1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-30 16:24:05 +03:00

cleanup: set_thd_proc_info()

the stage is changed from 'old_stage' to 'new_stage',
not the other way around
This commit is contained in:
Sergei Golubchik
2016-11-15 19:00:00 +01:00
parent 9bcfd27b7a
commit 3a3017a566

View File

@ -540,13 +540,13 @@ const char *set_thd_proc_info(THD *thd_arg, const char *info,
PSI_stage_info old_stage;
PSI_stage_info new_stage;
old_stage.m_key= 0;
old_stage.m_name= info;
new_stage.m_key= 0;
new_stage.m_name= info;
set_thd_stage_info(thd_arg, & old_stage, & new_stage,
set_thd_stage_info(thd_arg, & new_stage, & old_stage,
calling_function, calling_file, calling_line);
return new_stage.m_name;
return old_stage.m_name;
}
extern "C"