mariadb/sql
anozdrin/alik@station. e8343ca83d A patch for BUG#19723: kill of active connection yields
different error code depending on platform.

On Mac OS X, KILL statement issued to kill the current
connection would return a different error code and message than on
other platforms ('MySQL server has gone away' instead of 'Shutdown
in progress').

The reason for this difference was that on Mac OS X we have macro
SIGNAL_WITH_VIO_CLOSE defined. This macro forces KILL
implementation to close the communication socket of the thread
that is being killed. SIGNAL_WITH_VIO_CLOSE macro is defined on
platforms where just sending a signal is not a reliable mechanism
to interrupt the thread from sleeping on a blocking system call.
In a nutshell, closing the socket is a hack to work around an
operating system bug and awake the blocked thread no matter what.

However, if the thread that is being killed is the same
thread that issued KILL statement, closing the socket leads to a
prematurely lost connection. At the same time it is not necessary
to close the socket in this case, since the thread in question
is not inside a blocking system call.

The fix, therefore, is to not close the socket if the thread that
is being killed is the same that issued KILL statement, even with
defined SIGNAL_WITH_VIO_CLOSE.
2007-11-15 15:35:35 +03:00
..
examples Bug#28862 Extended Latin1 characters get lost in CVS engine 2007-06-15 11:19:35 +05:00
share Fix for BUG#24923: Functions with ENUM issues. 2007-10-17 12:13:56 +04:00
.cvsignore
add_errmsg
authors.h
client_settings.h
CMakeLists.txt Merge mysql.com:/home/kent/bk/tmp/mysql-5.0-build 2007-08-29 22:29:58 +02:00
contributors.h
custom_conf.h
derror.cc
des_key_file.cc
discover.cc
event_data_objects.cc Patch for BUG#31111: --read-only crashes MySQL (events fail to load). 2007-10-19 19:57:08 +04:00
event_data_objects.h Provide initial module structure to Doxygen. 2007-08-15 19:08:44 +04:00
event_db_repository.cc Bug#30882 Dropping a temporary table inside a stored function may cause a server crash 2007-11-01 18:52:56 -02:00
event_db_repository.h Provide initial module structure to Doxygen. 2007-08-15 19:08:44 +04:00
event_queue.cc Manual merge of parallel development in separate team trees. 2007-08-22 17:13:42 +02:00
event_queue.h Provide initial module structure to Doxygen. 2007-08-15 19:08:44 +04:00
event_scheduler.cc Patch for BUG#31111: --read-only crashes MySQL (events fail to load). 2007-10-19 19:57:08 +04:00
event_scheduler.h Provide initial module structure to Doxygen. 2007-08-15 19:08:44 +04:00
events.cc Bug #31332 --event-scheduler option misbehaving 2007-10-22 15:16:43 -04:00
events.h Provide initial module structure to Doxygen. 2007-08-15 19:08:44 +04:00
field.cc Merge magare.gmz:/home/kgeorge/mysql/autopush/B30825-new-5.0-opt 2007-10-23 11:44:14 +03:00
field.h Merge magare.gmz:/home/kgeorge/mysql/autopush/B30825-new-5.0-opt 2007-10-23 11:44:14 +03:00
field_conv.cc Fix doxygen warnings. 2007-08-16 21:14:47 +04:00
filesort.cc Use an inline getter method (thd->is_error()) to query if there is an error 2007-10-30 20:08:16 +03:00
frm_crypt.cc
gen_lex_hash.cc
gstream.cc Merge mysql.com:/home/hf/work/30286/my41-30286 2007-10-05 16:33:08 +05:00
gstream.h
ha_ndbcluster.cc Merge whalegate.ndb.mysql.com:/home/tomas/cge-5.1 2007-10-30 11:28:19 +01:00
ha_ndbcluster.h Merge mysql.com:/windows/Linux_space/MySQL/mysql-5.0-ndb 2007-10-02 14:23:59 +02:00
ha_ndbcluster_binlog.cc Use an inline getter method (thd->is_error()) to query if there is an error 2007-10-30 20:08:16 +03:00
ha_ndbcluster_binlog.h Merge whalegate.ndb.mysql.com:/home/tomas/mysql-5.1 2007-09-11 16:17:28 +02:00
ha_ndbcluster_cond.cc Merge sama.ndb.mysql.com:/export/space/pekka/ndb/version/my50-ndb 2007-10-04 18:37:49 +02:00
ha_ndbcluster_cond.h Merge whalegate.ndb.mysql.com:/home/tomas/mysql-5.1-new-ndb 2007-06-20 06:26:23 +02:00
ha_ndbcluster_tables.h
ha_partition.cc Merge mysql.com:/home/gluh/MySQL/Merge/5.1 2007-10-23 19:08:21 +05:00
ha_partition.h Merge jbruehe@bk-internal.mysql.com:/home/bk/mysql-5.1-target-5.1.22 2007-09-24 15:33:46 +02:00
handler.cc Merge lambda.hsd1.co.comcast.net.:/home/malff/TREE/mysql-5.1-base 2007-11-05 10:20:20 -07:00
handler.h Bug #28430 Failure in replication of innodb partitioned tables on row/mixed format. 2007-09-07 18:41:49 +05:00
hash_filo.cc
hash_filo.h
hostname.cc
init.cc
item.cc Merge mysql.com:/home/gluh/MySQL/Merge/5.1 2007-10-23 19:08:21 +05:00
item.h Merge polly.(none):/home/kaa/src/opt/bug28550/my50-bug28550 2007-10-21 21:49:30 +04:00
item_buff.cc
item_cmpfunc.cc Merge gkodinov@bk-internal.mysql.com:/home/bk/mysql-5.1-opt 2007-10-13 09:13:00 +03:00
item_cmpfunc.h merge of the fix for bug 27802 & 27216 to 5.1-opt 2007-09-26 19:06:54 +03:00
item_create.cc Manual merge of 5.0-runtime to 5.1-runtime 2007-10-16 20:47:08 -06:00
item_create.h Fix doxygen warnings. 2007-08-15 17:43:08 +04:00
item_func.cc A fix for Bug#32007 select udf_function() doesn't return an error if error 2007-11-01 00:31:57 +03:00
item_func.h Merge mysql.com:/home/gluh/MySQL/Merge/5.1 2007-10-23 19:08:21 +05:00
item_geofunc.cc Merge mysql.com:/home/hf/work/31155/my50-31155 2007-10-12 15:33:26 +05:00
item_geofunc.h Merge mysql.com:/home/hf/work/31155/my50-31155 2007-10-12 15:33:26 +05:00
item_row.cc
item_row.h
item_strfunc.cc Fix for a BUG#31898: 16M memory allocations for user variables 2007-11-12 14:44:17 +03:00
item_strfunc.h Merge polly.(none):/home/kaa/src/opt/bug28550/my50-bug28550 2007-10-21 21:49:30 +04:00
item_subselect.cc Use an inline getter method (thd->is_error()) to query if there is an error 2007-10-30 20:08:16 +03:00
item_subselect.h
item_sum.cc Merge mysql.com:/home/gluh/MySQL/Merge/5.1 2007-10-23 19:08:21 +05:00
item_sum.h Merge olga.mysql.com:/home/igor/mysql-5.0-opt 2007-06-30 20:49:28 -07:00
item_timefunc.cc Merge magare.gmz:/home/kgeorge/mysql/work/B31221-5.0-gca-opt 2007-10-18 15:57:59 +03:00
item_timefunc.h Merge mysql.com:/home/gluh/MySQL/Merge/5.1 2007-10-23 19:08:21 +05:00
item_xmlfunc.cc Fix for bug #31438: updatexml still crashes 2007-10-08 16:52:15 +05:00
item_xmlfunc.h
key.cc Fixed a lot of compiler warnings and errors detected by Forte C++ on Solaris 2007-08-13 16:11:25 +03:00
lex.h
lex_symbol.h
lock.cc Merge moksha.local:/Users/davi/mysql/push/bugs/25164-5.0 2007-08-27 10:19:58 -03:00
log.cc In ha_delete_table, use a standard mechanism to intercept the error message 2007-10-30 22:35:14 +03:00
log.h Bug#21557 entries in the general query log truncated at 1000 characters. 2007-10-18 15:45:07 -03:00
log_event.cc Rename: query_error -> is_slave_error. 2007-10-20 01:20:38 +04:00
log_event.h Merge sita.local:/Users/tsmith/m/bk/maint/51-target22 2007-08-29 15:28:38 -06:00
log_event_old.cc Rename: query_error -> is_slave_error. 2007-10-20 01:20:38 +04:00
log_event_old.h Merge sita.local:/Users/tsmith/m/bk/maint/51-target22 2007-08-29 15:28:38 -06:00
Makefile.am Makefile.am: 2007-09-26 18:47:55 +02:00
matherr.c
message.mc
mf_iocache.cc
my_decimal.cc Merge sin.intern.azundris.com:/home/tnurnberg/31227/50-31227 2007-10-05 09:47:14 +02:00
my_decimal.h Merge trift2.:/MySQL/M51/clone-5.1 2007-06-05 17:53:02 +02:00
my_lock.c
mysql_priv.h Bug#30882 Dropping a temporary table inside a stored function may cause a server crash 2007-11-01 18:52:56 -02:00
mysqld.cc Bug#28785 thread-handling not displayed properly in SHOW VARIABLES 2007-11-14 16:12:46 -05:00
mysqld_suffix.h
net_serv.cc Fix broken compilation. 2007-10-15 15:49:16 +04:00
nt_servc.cc
nt_servc.h
opt_range.cc Fixed bug #31075. 2007-09-26 12:45:08 +02:00
opt_range.h
opt_sum.cc Fixed a lot of compiler warnings and errors detected by Forte C++ on Solaris 2007-08-13 16:11:25 +03:00
parse_file.cc Slow query log to file now displays queries with microsecond precission 2007-07-30 11:33:50 +03:00
parse_file.h
partition_element.h
partition_info.cc Fixed a lot of compiler warnings and errors detected by Forte C++ on Solaris 2007-08-13 16:11:25 +03:00
partition_info.h BUG#27927:Partition pruning not optimal with TO_DAYS and YEAR functions 2007-09-14 14:18:42 +04:00
password.c
procedure.cc
procedure.h
protocol.cc Remove net_printf_error(). Do not talk to network directly in 2007-11-01 00:10:58 +03:00
protocol.h Remove net_printf_error(). Do not talk to network directly in 2007-11-01 00:10:58 +03:00
records.cc
repl_failsafe.cc Renaming MASTER_INFO to Master_info in order to follow the coding 2007-08-16 08:52:50 +02:00
repl_failsafe.h Renaming MASTER_INFO to Master_info in order to follow the coding 2007-08-16 08:52:50 +02:00
rpl_constants.h
rpl_filter.cc Fixed a lot of compiler warnings and errors detected by Forte C++ on Solaris 2007-08-13 16:11:25 +03:00
rpl_filter.h
rpl_injector.cc
rpl_injector.h
rpl_mi.cc Renaming MASTER_INFO to Master_info in order to follow the coding 2007-08-16 08:52:50 +02:00
rpl_mi.h Renaming MASTER_INFO to Master_info in order to follow the coding 2007-08-16 08:52:50 +02:00
rpl_record.cc Merge sita.local:/Users/tsmith/m/bk/maint/51-target22 2007-08-29 15:28:38 -06:00
rpl_record.h Merge sita.local:/Users/tsmith/m/bk/maint/51-target22 2007-08-29 15:28:38 -06:00
rpl_record_old.cc Renaming RELAY_LOG_INFO and st_relay_log_info to follow coding standards 2007-08-16 07:37:50 +02:00
rpl_record_old.h Renaming RELAY_LOG_INFO and st_relay_log_info to follow coding standards 2007-08-16 07:37:50 +02:00
rpl_reporting.cc BUG#24954 (Last_errno and Last_error not set after master_retry_count has 2007-06-11 22:15:39 +02:00
rpl_reporting.h BUG#24954 (Last_errno and Last_error not set after master_retry_count has 2007-06-11 22:15:39 +02:00
rpl_rli.cc Renaming RELAY_LOG_INFO and st_relay_log_info to follow coding standards 2007-08-16 07:37:50 +02:00
rpl_rli.h Minor fix to let the build proceed. 2007-08-17 13:22:31 +02:00
rpl_tblmap.cc
rpl_tblmap.h
rpl_utility.cc Merge sita.local:/Users/tsmith/m/bk/maint/51-target22 2007-08-29 15:28:38 -06:00
rpl_utility.h Merge weblab.(none):/home/marcsql/TREE/mysql-5.1-base 2007-09-04 12:25:54 -06:00
scheduler.cc
scheduler.h Bug#28785 thread-handling not displayed properly in SHOW VARIABLES 2007-11-14 16:12:46 -05:00
set_var.cc Use an inline getter method (thd->is_error()) to query if there is an error 2007-10-30 20:08:16 +03:00
set_var.h Fixed a lot of compiler warnings and errors detected by Forte C++ on Solaris 2007-08-13 16:11:25 +03:00
slave.cc Bug#30882 Dropping a temporary table inside a stored function may cause a server crash 2007-11-01 18:52:56 -02:00
slave.h Merge sita.local:/Users/tsmith/m/bk/maint/51-target22 2007-08-29 15:28:38 -06:00
sp.cc Use an inline getter method (thd->is_error()) to query if there is an error 2007-10-30 20:08:16 +03:00
sp.h Fix for BUG#24923: Functions with ENUM issues. 2007-10-17 12:13:56 +04:00
sp_cache.cc Fixed a lot of compiler warnings and errors detected by Forte C++ on Solaris 2007-08-13 16:11:25 +03:00
sp_cache.h
sp_head.cc Bug#30882 Dropping a temporary table inside a stored function may cause a server crash 2007-11-01 18:52:56 -02:00
sp_head.h Merge lambda.hsd1.co.comcast.net.:/home/malff/TREE/mysql-5.0-runtime 2007-10-16 15:43:16 -06:00
sp_pcontext.cc Follow up after work on Bug 4968 2007-06-10 14:43:57 +04:00
sp_pcontext.h Follow up after work on Bug 4968 2007-06-10 14:43:57 +04:00
sp_rcontext.cc Merge moonbone.local:/mnt/gentoo64/work/24989-bug-5.0-opt-mysql 2007-08-02 18:42:56 +04:00
sp_rcontext.h Bug#24989: The DEADLOCK error is improperly handled by InnoDB. 2007-07-30 17:14:34 +04:00
spatial.cc Merge gleb.loc:/home/uchum/work/bk/5.0-opt 2007-07-07 20:14:06 +05:00
spatial.h
sql_acl.cc Merge adventure.(none):/home/thek/Development/cpp/bug31347/my51-bug31347 2007-10-31 13:22:19 +01:00
sql_acl.h merged the fix for bug 30468 to 5.1-opt 2007-09-27 12:32:59 +03:00
sql_analyse.cc Fix doxygen warnings. 2007-08-15 17:43:08 +04:00
sql_analyse.h Fix doxygen warnings. 2007-08-15 17:43:08 +04:00
sql_array.h
sql_base.cc Bug#30882 Dropping a temporary table inside a stored function may cause a server crash 2007-11-01 18:52:56 -02:00
sql_binlog.cc Renaming RELAY_LOG_INFO and st_relay_log_info to follow coding standards 2007-08-16 07:37:50 +02:00
sql_bitmap.h
sql_builtin.cc.in
sql_cache.cc Bug#30710 query_cache.test fails on embedded - per-column privs test 2007-10-16 14:42:42 +02:00
sql_cache.h Merge adventure.(none):/home/thek/Development/cpp/bug30269/my51-bug30269 2007-08-17 17:26:38 +02:00
sql_class.cc A patch for BUG#19723: kill of active connection yields 2007-11-15 15:35:35 +03:00
sql_class.h Cleanup: rename select_send::status to select_send::is_result_set_started. 2007-10-31 18:33:13 +03:00
sql_client.cc
sql_connect.cc Merge endora.local:/Users/davi/mysql/bugs/31850-5.1 2007-11-01 20:44:09 -02:00
sql_crypt.cc
sql_crypt.h
sql_cursor.cc
sql_cursor.h
sql_db.cc WL#4030 (Deprecate RENAME DATABASE: replace with ALTER DATABASE <name> 2007-09-10 16:10:37 -06:00
sql_delete.cc A fix for Bug#32030 "DELETE does not return an error and deletes rows if 2007-11-02 02:36:12 +03:00
sql_derived.cc
sql_do.cc
sql_error.cc In ha_delete_table, use a standard mechanism to intercept the error message 2007-10-30 22:35:14 +03:00
sql_error.h BUG#26976 - Missing table in merge not noted in related error msg + 2007-06-06 04:42:41 +05:00
sql_handler.cc Bug#30882 Dropping a temporary table inside a stored function may cause a server crash 2007-11-01 18:52:56 -02:00
sql_help.cc Fixed a lot of compiler warnings and errors detected by Forte C++ on Solaris 2007-08-13 16:11:25 +03:00
sql_insert.cc Bug#30882 Dropping a temporary table inside a stored function may cause a server crash 2007-11-01 18:52:56 -02:00
sql_lex.cc Fix for bug #29444: crash with partition refering to table in create-select 2007-10-09 19:16:39 +05:00
sql_lex.h Bug#30904 SET PASSWORD statement is non-transactional 2007-10-30 20:51:04 -02:00
sql_list.cc
sql_list.h
sql_load.cc (Pushing for Andrei) 2007-07-30 19:02:21 +03:00
sql_locale.cc
sql_manager.cc
sql_map.cc fixed type conversion warnings revealed by bug 30639 2007-09-21 10:15:16 +02:00
sql_map.h
sql_olap.cc
sql_parse.cc Merge endora.local:/Users/davi/mysql/bugs/30882-5.1 2007-11-01 20:48:14 -02:00
sql_partition.cc Fix for bug #29444: crash with partition refering to table in create-select 2007-10-09 19:16:39 +05:00
sql_partition.h Merge bk@192.168.21.1:mysql-5.1-opt 2007-06-25 14:28:30 +05:00
sql_plugin.cc fix undefined variable which can lead to crash 2007-10-04 17:34:28 -07:00
sql_plugin.h 5.0-opt -> 5.1-opt merge 2007-06-12 18:41:56 +03:00
sql_prepare.cc Use an inline getter method (thd->is_error()) to query if there is an error 2007-10-30 20:08:16 +03:00
sql_rename.cc WL#3984 (Revise locking of mysql.general_log and mysql.slow_log) 2007-07-27 00:31:06 -06:00
sql_repl.cc after merge fix 2007-10-10 14:22:21 +05:00
sql_repl.h Renaming MASTER_INFO to Master_info in order to follow the coding 2007-08-16 08:52:50 +02:00
sql_select.cc Bug #31974: Wrong EXPLAIN output 2007-11-05 13:19:56 +02:00
sql_select.h Merge magare.gmz:/home/kgeorge/mysql/autopush/B30825-new-5.0-opt 2007-10-23 11:44:14 +03:00
sql_servers.cc Fixed a lot of compiler warnings and errors detected by Forte C++ on Solaris 2007-08-13 16:11:25 +03:00
sql_servers.h
sql_show.cc Bug#31633 Information schema = NULL queries crash the server 2007-10-23 13:20:51 +05:00
sql_show.h WL#3732 Information schema optimization 2007-08-03 03:14:05 +05:00
sql_sort.h Fixed bug #25798. 2007-07-01 15:33:28 -07:00
sql_state.c
sql_string.cc Merge trift2.:/MySQL/M51/target-5.1.22 2007-08-22 16:08:55 +02:00
sql_string.h
sql_table.cc Merge endora.local:/Users/davi/mysql/bugs/30882-5.1 2007-11-01 20:48:14 -02:00
sql_tablespace.cc Bug #26418: Slave out of sync after 2007-06-19 14:27:53 +03:00
sql_test.cc Fixes Bug#30127: --debug-info no longer prints memory usage in mysql 2007-08-01 22:59:05 +03:00
sql_trigger.cc Fixed whitespace 2007-09-04 16:40:27 -06:00
sql_trigger.h Merge bodhi.(none):/opt/local/work/mysql-5.0-runtime 2007-07-16 23:31:36 +04:00
sql_udf.cc Merge lambda.hsd1.co.comcast.net.:/home/malff/TREE/mysql-5.0-runtime 2007-10-16 15:43:16 -06:00
sql_udf.h Remove typedef st_table_list TABLE_LIST and always use name 'TABLE_LIST'. 2007-07-06 16:18:49 +04:00
sql_union.cc Use an inline getter method (thd->is_error()) to query if there is an error 2007-10-30 20:08:16 +03:00
sql_update.cc Merge lambda.hsd1.co.comcast.net.:/home/malff/TREE/mysql-5.1-base 2007-11-05 10:20:20 -07:00
sql_view.cc Use an inline getter method (thd->is_error()) to query if there is an error 2007-10-30 20:08:16 +03:00
sql_view.h
sql_yacc.yy Bug#30904 SET PASSWORD statement is non-transactional 2007-10-30 20:51:04 -02:00
stacktrace.c Merge ymer.(none):/usr/local/mysql/mysql-5.0-engines 2007-07-07 07:48:43 +02:00
stacktrace.h
strfunc.cc Fixed a lot of compiler warnings and errors detected by Forte C++ on Solaris 2007-08-13 16:11:25 +03:00
structs.h Slow query log to file now displays queries with microsecond precission 2007-07-30 11:33:50 +03:00
table.cc Merge mysql.com:/home/gluh/MySQL/Merge/5.1 2007-10-23 19:08:21 +05:00
table.h Bug#30882 Dropping a temporary table inside a stored function may cause a server crash 2007-11-01 18:52:56 -02:00
thr_malloc.cc
time.cc re-push of Bug 29536 for 5.1.22: timestamp inconsistent in replication around 1970 2007-08-27 12:33:57 +03:00
tzfile.h
tztime.cc Fixed a lot of compiler warnings and errors detected by Forte C++ on Solaris 2007-08-13 16:11:25 +03:00
tztime.h Bug#28641 CREATE EVENT with '2038.01.18 03:00:00' let server crash. 2007-07-25 09:43:49 +02:00
udf_example.c Bug #29804 UDF parameters don't contain correct string length 2007-10-17 17:54:11 -04:00
udf_example.def Bug #29804 UDF parameters don't contain correct string length 2007-10-17 17:54:11 -04:00
uniques.cc Merge magare.gmz:/home/kgeorge/mysql/work/mysql-5.0-opt 2007-07-04 11:46:45 +03:00
unireg.cc Use Internal_error_handler mechanism to silence ER_TOO_MANY_FIELDS 2007-11-01 18:06:46 +03:00
unireg.h Merge trift2.:/MySQL/M51/target-5.1.22 2007-08-22 16:08:55 +02:00