mirror of
https://github.com/MariaDB/server.git
synced 2025-07-29 05:21:33 +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:
@ -3687,7 +3687,13 @@ private:
|
||||
public:
|
||||
/** Overloaded to guard query/query_length fields */
|
||||
virtual void set_statement(Statement *stmt);
|
||||
void set_command(enum enum_server_command command);
|
||||
void set_command(enum enum_server_command command)
|
||||
{
|
||||
m_command= command;
|
||||
#ifdef HAVE_PSI_THREAD_INTERFACE
|
||||
PSI_STATEMENT_CALL(set_thread_command)(m_command);
|
||||
#endif
|
||||
}
|
||||
inline enum enum_server_command get_command() const
|
||||
{ return m_command; }
|
||||
|
||||
|
Reference in New Issue
Block a user