/usr/include/mysql/server/mysql
NameSizeModeActions
psi/-0755rm
auth_dialog_client.h20610644editdlrm
client_plugin.h63270644editdlrm
plugin.h298940644editdlrm
plugin_audit.h55750644editdlrm
plugin_auth.h54000644editdlrm
plugin_auth_common.h45090644editdlrm
plugin_data_type.h13000644editdlrm
plugin_encryption.h44330644editdlrm
plugin_ftparser.h78320644editdlrm
plugin_function.h14370644editdlrm
plugin_password_validation.h16200644editdlrm
services.h17620644editdlrm
service_base64.h29320644editdlrm
service_debug_sync.h135800644editdlrm
service_encryption.h56570644editdlrm
service_encryption_scheme.h56460644editdlrm
service_json.h45510644editdlrm
service_kill_statement.h20700644editdlrm
service_logger.h35510644editdlrm
service_log_warnings.h13770644editdlrm
service_md5.h21190644editdlrm
service_my_crypt.h41670644editdlrm
service_my_print_error.h23280644editdlrm
service_my_snprintf.h37220644editdlrm
service_print_check_msg.h15520644editdlrm
service_progress_report.h33650644editdlrm
service_sha1.h21620644editdlrm
service_sha2.h52990644editdlrm
service_sql.h51340644editdlrm
service_thd_alloc.h44900644editdlrm
service_thd_autoinc.h16920644editdlrm
service_thd_error_context.h34240644editdlrm
service_thd_mdl.h12820644editdlrm
service_thd_rnd.h19020644editdlrm
service_thd_specifics.h36860644editdlrm
service_thd_timezone.h22910644editdlrm
service_thd_wait.h36950644editdlrm
service_wsrep.h141580644editdlrm
Edit: /usr/include/mysql/server/mysql/service_kill_statement.h (2070B)
/* Copyright (c) 2013, 2018, MariaDB This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; version 2 of the License. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1335 USA */ #ifndef MYSQL_SERVICE_KILL_STATEMENT_INCLUDED #define MYSQL_SERVICE_KILL_STATEMENT_INCLUDED /** @file This service provides functions that allow plugins to support the KILL statement. In MySQL support for the KILL statement is cooperative. The KILL statement only sets a "killed" flag. This function returns the value of that flag. A thread should check it often, especially inside time-consuming loops, and gracefully abort the operation if it is non-zero. thd_killed(thd) @return 0 - no KILL statement was issued, continue normally @return 1 - there was a KILL statement, abort the execution. thd_kill_level(thd) @return thd_kill_levels_enum values */ #ifdef __cplusplus extern "C" { #endif enum thd_kill_levels { THD_IS_NOT_KILLED=0, THD_ABORT_SOFTLY=50, /**< abort when possible, don't leave tables corrupted */ THD_ABORT_ASAP=100, /**< abort asap */ }; extern struct kill_statement_service_st { enum thd_kill_levels (*thd_kill_level_func)(const MYSQL_THD); } *thd_kill_statement_service; /* backward compatibility helper */ #define thd_killed(THD) (thd_kill_level(THD) == THD_ABORT_ASAP) #ifdef MYSQL_DYNAMIC_PLUGIN #define thd_kill_level(THD) \ thd_kill_statement_service->thd_kill_level_func(THD) #else enum thd_kill_levels thd_kill_level(const MYSQL_THD); #endif #ifdef __cplusplus } #endif #endif