mariadb/include
Michael Widenius 22e793639a Added new options to KILL. New syntax is KILL [HARD|SOFT] [CONNECTION|QUERY] [ID | USER user_name]
- If USER is given, all threads for that user is signaled
- If SOFT is used then the KILL will not be sent to the handler. This can be used to not interrupt critical things in the handler like 'REPAIR'.

Internally added more kill signals. This gives us more information of why a query/connection was killed.
- KILL_SERVER is used when server is going down. In this case the users gets ER_SHUTDOWN as the reason connection was killed.
- Changed signals to number in correct order, which makes it easier to test how the signal should affect the code.
- New error message ER_CONNECTION_KILLED if connection was killed by 'KILL CONNECTION'. Before we got error ER_SHUTDOWN.

Changed names of not used parameters KILL_QUERY & KILL_CONNCTION to mysql_kill() to not conflict with defines in the server


include/mysql.h.pp:
  Updated file
include/mysql_com.h:
  Changed names of not used parameters KILL_QUERY & KILL_CONNCTION to mysql_kill() to not conflict with defines in the server
mysql-test/r/kill.result:
  Added test of KILL USER
mysql-test/suite/rpl/r/rpl_stm_000001.result:
  Updated error code
mysql-test/suite/rpl/t/rpl_stm_000001.test:
  Updated error codes
mysql-test/t/flush_read_lock_kill.test:
  Updated error codes
mysql-test/t/kill.test:
  Added test of KILL USER
plugin/handler_socket/handlersocket/database.cpp:
  Removed THD:: from KILL
sql/debug_sync.cc:
  Removed THD:: from KILL
sql/event_scheduler.cc:
  Removed THD:: from KILL
sql/filesort.cc:
  Removed THD:: from KILL
sql/ha_ndbcluster_binlog.cc:
  Removed THD:: from KILL
sql/handler.cc:
  Removed THD:: from KILL
  Simplify code.
sql/lex.h:
  Added new keywords HARD | SOFT
sql/log.cc:
  Removed THD:: from KILL
  Added testing of new error ER_CONNECTION_KILLED
sql/log_event.cc:
  Removed THD:: from KILL
  Added testing of new error ER_CONNECTION_KILLED
sql/mysql_priv.h:
  Added new prototypes
sql/mysqld.cc:
  Removed THD:: from KILL
  Use KILL_SERVER_HARD signal on shutdown.
sql/scheduler.cc:
  Removed THD:: from KILL
  Simplify test if connection should be killed
sql/share/errmsg.txt:
  New error message ER_CONNECTION_KILLED
sql/slave.cc:
  Removed THD:: from KILL
sql/sp_head.cc:
  Removed THD:: from KILL
sql/sql_base.cc:
  Removed THD:: from KILL
sql/sql_cache.cc:
  Removed THD:: from KILL
sql/sql_class.cc:
  Removed THD:: from KILL
  Added killed_errno()
  Only signal kill to storage engine if HARD bit is set.
sql/sql_class.h:
  Move KILL options out from THD to make them easier to use in sql_yacc.yy
sql/sql_connect.cc:
  Removed THD:: from KILL
sql/sql_delete.cc:
  Removed THD:: from KILL
sql/sql_error.cc:
  Removed THD:: from KILL
sql/sql_insert.cc:
  Removed THD:: from KILL
  Simplifed testing if thread is killed.
sql/sql_lex.h:
  Added kill options to st_lex
sql/sql_load.cc:
  Removed THD:: from KILL
sql/sql_parse.cc:
  Added kill options to st_lex
  Simplifed and optimzed testing of thd->killed at end of query
  Added support for KILL USER
  Extended sql_kill() to allow use of more kill signals.
sql/sql_repl.cc:
  Removed THD:: from KILL
sql/sql_show.cc:
  Removed THD:: from KILL
  Simplied testing if query/connection was killed
sql/sql_table.cc:
  Removed THD:: from KILL
sql/sql_update.cc:
  Removed THD:: from KILL
sql/sql_yacc.yy:
  Added support for new KILL syntax: KILL [HARD|SOFT] [CONNECTION|QUERY] [ID | USER user_name]
storage/archive/ha_archive.cc:
  Simplify compilation
storage/maria/ha_maria.cc:
  Removed THD:: from KILL
2011-09-23 01:13:38 +03:00
..
atomic Bug#22320: my_atomic-t unit test fails 2010-07-05 09:00:39 -03:00
mysql Added progress reporting for alter table, LOAD DATA INFILE and for aria tables: check table, repair table, analyze table. 2011-07-01 15:08:30 +03:00
.cvsignore
base64.h
CMakeLists.txt MWL#55 : cherrypick MySQL 5.5 CMake/build improvements in order 2011-01-29 18:51:12 +01:00
config-netware.h BUG#58246: INSTALL PLUGIN not secure & crashable 2010-12-01 13:54:50 +01:00
config-win.h merge Windows performance patches into 5.3 2011-07-05 21:46:53 +02:00
decimal.h Adding support for Dynamic columns (WL#34): 2011-05-08 13:24:06 +03:00
errmsg.h pluggable auth with plugin examples 2010-03-29 17:13:53 +02:00
ft_global.h Merge with MySQL 5.1.57/58 2011-05-02 20:58:45 +03:00
hash.h Merge MySQL->MariaDB 2009-09-08 00:50:10 +04:00
heap.h Merge with MariaDB 5.2 2011-05-10 18:17:43 +03:00
help_end.h
help_start.h
keycache.h merge w/ 5.1 2010-10-29 23:18:02 +02:00
lf.h post-review fixes 2009-01-15 22:27:36 +01:00
m_ctype.h Rewritten patch of percona - switching query cache on and off, removing comments. 2011-05-18 16:27:19 +03:00
m_string.h Merge with 5.2 2011-03-09 15:47:59 +02:00
ma_dyncol.h portability fix: avoid anonymous structs and unions in C 2011-09-22 11:04:00 +02:00
Makefile.am Fixed compilation & test issues found by buildbot 2011-07-02 17:37:59 +03:00
maria.h Merge with MariaDB 5.1 2011-05-03 19:10:10 +03:00
my_aes.h
my_alarm.h Bug#54667: Unnecessary signal handler redefinition 2010-07-01 12:02:00 +04:00
my_alloc.h Merged 5.1 with maria 5.1 2008-10-10 18:28:41 +03:00
my_atomic.h Bug#22320: my_atomic-t unit test fails 2010-07-05 09:00:39 -03:00
my_attribute.h merge with 5.1 2010-11-30 23:11:03 +02:00
my_base.h Added HA_ERR_DISK_FULL handler error 2011-05-18 13:36:12 +03:00
my_bit.h Merge with MySQL 5.1.57/58 2011-05-02 20:58:45 +03:00
my_bitmap.h Merge with MySQL 5.1.57/58 2011-05-02 20:58:45 +03:00
my_compare.h Merge with MariaDB 5.2 2011-05-10 18:17:43 +03:00
my_compiler.h Merge with MySQL 5.1.55 2011-02-20 18:51:43 +02:00
my_dbug.h Merge with MySQL 5.1.55 2011-02-20 18:51:43 +02:00
my_decimal_limits.h Adding support for Dynamic columns (WL#34): 2011-05-08 13:24:06 +03:00
my_dir.h Backport Fix for Bug#24509 - 2048 file descriptor limit on windows needs increasing. 2011-06-12 15:52:07 +02:00
my_getopt.h Bug#42733: Type-punning warnings when compiling MySQL -- 2010-06-10 17:16:43 -03:00
my_global.h merge Windows performance patches into 5.3 2011-07-05 21:46:53 +02:00
my_handler.h Merge with MySQL 5.1.57/58 2011-05-02 20:58:45 +03:00
my_libwrap.h
my_list.h
my_md5.h Bug #42434: license of mysys MD5 implementation is not GPL-compatible 2009-03-09 20:57:03 +02:00
my_net.h
my_no_pthread.h pluggable auth with plugin examples 2010-03-29 17:13:53 +02:00
my_nosys.h
my_pthread.h merge Windows performance patches into 5.3 2011-07-05 21:46:53 +02:00
my_stacktrace.h Bug#51817: incorrect assumption: thd->query at 0x2ab2a8360360 is an invalid pointer 2010-11-26 19:59:10 -02:00
my_sys.h Merge with 5.2 2011-09-10 18:01:27 +03:00
my_time.h various fixes for buildbot failures 2011-06-10 15:42:55 +02:00
my_tree.h Addressed the feedback from the review of Monty on the cumulative patch for 2010-12-19 00:44:39 -08:00
my_trie.h
my_uctype.h
my_user.h
my_valgrind.h Merge with MySQL 5.1.49 2010-08-02 12:01:24 +03:00
my_vle.h
my_xml.h
myisam.h Merge with MySQL 5.1.57/58 2011-05-02 20:58:45 +03:00
myisamchk.h Merge with 5.2 2011-09-10 18:01:27 +03:00
myisammrg.h Bug#45800 crash when replacing into a merge table and there is a duplicate 2009-07-30 16:04:41 +05:30
myisampack.h
mysql.h Added progress reporting for alter table, LOAD DATA INFILE and for aria tables: check table, repair table, analyze table. 2011-07-01 15:08:30 +03:00
mysql.h.pp Added new options to KILL. New syntax is KILL [HARD|SOFT] [CONNECTION|QUERY] [ID | USER user_name] 2011-09-23 01:13:38 +03:00
mysql_com.h Added new options to KILL. New syntax is KILL [HARD|SOFT] [CONNECTION|QUERY] [ID | USER user_name] 2011-09-23 01:13:38 +03:00
mysql_embed.h Bug#57210: remove pstack 2010-11-09 12:45:13 -02:00
mysql_time.h
mysql_version.h.in Added mariadb and mariadb-version as my.conf option tags 2009-03-18 04:14:22 +02:00
mysys_err.h Merge with MySQL 5.1.55 2011-02-20 18:51:43 +02:00
queues.h Fixed wrong queue_replace(), which caused timeout failure in pbxt.flush_read_lock_kill 2010-11-02 11:03:33 +02:00
rijndael.h
service_versions.h Added progress reporting for alter table, LOAD DATA INFILE and for aria tables: check table, repair table, analyze table. 2011-07-01 15:08:30 +03:00
sha1.h Bug #56428: Replace copyright notice removed from SHA1 code (.h) 2010-10-05 17:05:37 +03:00
sql_common.h Added progress reporting for alter table, LOAD DATA INFILE and for aria tables: check table, repair table, analyze table. 2011-07-01 15:08:30 +03:00
sslopt-case.h
sslopt-longopts.h Bug#42733: Type-punning warnings when compiling MySQL -- 2010-06-10 17:16:43 -03:00
sslopt-vars.h
t_ctype.h
thr_alarm.h Implementation of MWL#172: Add support for prepared statements to HANDLER READ 2011-01-04 00:55:41 +02:00
thr_lock.h Merge with 5.2 2011-03-09 15:47:59 +02:00
typelib.h Fix LPBUG#808233 - undefined uint in typelib.h 2011-07-10 12:48:13 +02:00
violite.h Changed version number from RC to stable 2010-01-29 12:42:31 +02:00
waiting_threads.h compilation fixes 2009-01-19 16:27:49 +01:00
wqueue.h