mirror of
https://github.com/MariaDB/server.git
synced 2025-08-08 11:22:35 +03:00
MDEV-8192 - THD::set_command() takes 0.05% in OLTP RO
Moved THD::set_command() definition to sql_class.h so that it can be inlined. Overhead change: THD::set_command 0.05% -> out of radar
This commit is contained in:
@@ -5056,14 +5056,6 @@ void THD::set_status_no_good_index_used()
|
||||
#endif
|
||||
}
|
||||
|
||||
void THD::set_command(enum enum_server_command command)
|
||||
{
|
||||
m_command= command;
|
||||
#ifdef HAVE_PSI_THREAD_INTERFACE
|
||||
PSI_STATEMENT_CALL(set_thread_command)(m_command);
|
||||
#endif
|
||||
}
|
||||
|
||||
/** Assign a new value to thd->query and thd->query_id. */
|
||||
|
||||
void THD::set_query_and_id(char *query_arg, uint32 query_length_arg,
|
||||
|
Reference in New Issue
Block a user