1
0
mirror of https://github.com/MariaDB/server.git synced 2025-08-08 11:22:35 +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

@@ -2166,21 +2166,6 @@ void THD::rollback_item_tree_changes()
}
/*
Check if the thread has been killed, and also process "APC requests"
@retval true The thread is killed, execution should be interrupted
@retval false Not killed, continue execution
*/
bool THD::check_killed()
{
if (killed)
return TRUE;
apc_target.process_apc_requests();
return FALSE;
}
/*****************************************************************************
** Functions to provide a interface to select results
*****************************************************************************/