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:
@@ -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
|
||||
*****************************************************************************/
|
||||
|
Reference in New Issue
Block a user