mirror of
https://github.com/MariaDB/server.git
synced 2025-07-30 16:24:05 +03:00
MWL#182: Explain running statements: address review feedback
- Make THD::check_killed() an inline function which makes calls to non-inline functions only whern there are APC requests to be served.
This commit is contained in:
@ -2222,7 +2222,14 @@ public:
|
||||
*/
|
||||
killed_state volatile killed;
|
||||
|
||||
bool check_killed();
|
||||
inline bool check_killed()
|
||||
{
|
||||
if (killed)
|
||||
return TRUE;
|
||||
if (apc_target.have_apc_requests())
|
||||
apc_target.process_apc_requests();
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
/* scramble - random string sent to client on handshake */
|
||||
char scramble[SCRAMBLE_LENGTH+1];
|
||||
|
Reference in New Issue
Block a user