1
0
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:
Sergey Petrunya
2012-07-11 13:39:56 +04:00
parent 725d76e1e8
commit f913ba7a60
3 changed files with 17 additions and 16 deletions

View File

@ -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];