From 3a3017a5664e868d94df483c1cfc7c9876ae79d2 Mon Sep 17 00:00:00 2001 From: Sergei Golubchik Date: Tue, 15 Nov 2016 19:00:00 +0100 Subject: [PATCH] cleanup: set_thd_proc_info() the stage is changed from 'old_stage' to 'new_stage', not the other way around --- sql/sql_class.cc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/sql/sql_class.cc b/sql/sql_class.cc index 8fabc8f593e..86090e251e9 100644 --- a/sql/sql_class.cc +++ b/sql/sql_class.cc @@ -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"