From 9e9f1da0d2dd5d9de9094d20d0b39e71ec4ce479 Mon Sep 17 00:00:00 2001 From: Sergey Vojtovich Date: Tue, 2 Dec 2014 14:59:01 +0400 Subject: [PATCH] MDEV-7004 - Merge scalability fixes from 10.0-power Remove call to deprecated set_thread_state. It is noop anyway, but generates function call independently of performance schema state. According to perf this saves ~0.2% of execution time. --- sql/sql_class.cc | 1 - 1 file changed, 1 deletion(-) diff --git a/sql/sql_class.cc b/sql/sql_class.cc index 422a83aab55..6d2299cf06b 100644 --- a/sql/sql_class.cc +++ b/sql/sql_class.cc @@ -587,7 +587,6 @@ void THD::enter_stage(const PSI_stage_info *new_stage, proc_info= msg; #ifdef HAVE_PSI_THREAD_INTERFACE - PSI_THREAD_CALL(set_thread_state)(msg); MYSQL_SET_STAGE(m_current_stage_key, calling_file, calling_line); #endif }