mariadb/sql
monty@mysql.com/narttu.mysql.fi f0ae3ce9b9 Fixed compiler warnings
Fixed compile-pentium64 scripts
Fixed wrong estimate of update_with_key_prefix in sql-bench
Merge bk-internal.mysql.com:/home/bk/mysql-5.1 into mysql.com:/home/my/mysql-5.1
Fixed unsafe define of uint4korr()
Fixed that --extern works with mysql-test-run.pl
Small trivial cleanups
This also fixes a bug in counting number of rows that are updated when we have many simultanous queries
Move all connection handling and command exectuion main loop from sql_parse.cc to sql_connection.cc
Split handle_one_connection() into reusable sub functions.
Split create_new_thread() into reusable sub functions.
Added thread_scheduler; Preliminary interface code for future thread_handling code.

Use 'my_thread_id' for internal thread id's
Make thr_alarm_kill() to depend on thread_id instead of thread
Make thr_abort_locks_for_thread() depend on thread_id instead of thread
In store_globals(), set my_thread_var->id to be thd->thread_id.
Use my_thread_var->id as basis for my_thread_name()
The above changes makes the connection we have between THD and threads more soft.

Added a lot of DBUG_PRINT() and DBUG_ASSERT() functions
Fixed compiler warnings
Fixed core dumps when running with --debug
Removed setting of signal masks (was never used)
Made event code call pthread_exit() (portability fix)
Fixed that event code doesn't call DBUG_xxx functions before my_thread_init() is called.
Made handling of thread_id and thd->variables.pseudo_thread_id uniform.
Removed one common 'not freed memory' warning from mysqltest
Fixed a couple of usage of not initialized warnings (unlikely cases)
Suppress compiler warnings from bdb and (for the moment) warnings from ndb
2007-02-23 13:13:55 +02:00
..
examples After merge fix 2007-02-03 09:26:11 +01:00
share Merge bk-internal.mysql.com:/home/bk/mysql-5.1 2007-01-22 19:18:22 +02:00
.cvsignore
add_errmsg
authors.h Many files: 2006-12-31 02:29:11 +01:00
client_settings.h my_strtoll10-x86.s: 2006-12-31 01:02:27 +01:00
CMakeLists.txt Fixed compiler warnings 2007-02-23 13:13:55 +02:00
contributors.h Many files: 2006-12-31 02:29:11 +01:00
custom_conf.h my_strtoll10-x86.s: 2006-12-31 01:02:27 +01:00
derror.cc my_strtoll10-x86.s: 2006-12-31 01:02:27 +01:00
des_key_file.cc my_strtoll10-x86.s: 2006-12-31 01:02:27 +01:00
discover.cc Merge mysql.com:/home/kent/bk/main/mysql-5.0 2006-12-31 01:32:21 +01:00
event_data_objects.cc After merge fixes 2007-01-29 01:47:35 +02:00
event_data_objects.h Many files: 2006-12-27 02:23:51 +01:00
event_db_repository.cc After merge fixes 2007-01-29 01:47:35 +02:00
event_db_repository.h Many files: 2006-12-27 02:23:51 +01:00
event_queue.cc After merge fixes 2007-01-29 01:47:35 +02:00
event_queue.h Many files: 2006-12-27 02:23:51 +01:00
event_scheduler.cc Fixed compiler warnings 2007-02-23 13:13:55 +02:00
event_scheduler.h Many files: 2006-12-27 02:23:51 +01:00
events.cc Many files: 2006-12-27 02:23:51 +01:00
events.h Many files: 2006-12-27 02:23:51 +01:00
field.cc Merge neptunus.(none):/home/msvensson/mysql/mysql-5.1 2007-02-06 15:46:17 +01:00
field.h Fixed compiler warnings 2007-02-23 13:13:55 +02:00
field_conv.cc Merge olga.mysql.com:/home/igor/mysql-5.0-opt 2007-02-13 01:34:36 -08:00
filesort.cc Merge jamppa@bk-internal.mysql.com:/home/bk/mysql-5.1 2007-02-03 00:58:09 +02:00
frm_crypt.cc my_strtoll10-x86.s: 2006-12-31 01:02:27 +01:00
gen_lex_hash.cc gen_lex_hash.cc: 2007-01-31 00:06:42 +01:00
gstream.cc Many files: 2006-12-23 20:17:15 +01:00
gstream.h my_strtoll10-x86.s: 2006-12-31 01:02:27 +01:00
ha_ndbcluster.cc Fixed compiler warnings 2007-02-23 13:13:55 +02:00
ha_ndbcluster.h NdbScanOperation.hpp, NdbScanOperation.cpp, ha_ndbcluster.cc: 2007-02-07 11:36:34 +01:00
ha_ndbcluster_binlog.cc Bug#26015 valgrind warning PollGuard::unlock_and_signal()/NdbCondition_Destroy 2007-02-06 22:06:13 +01:00
ha_ndbcluster_binlog.h Bug #26021 - valgrind reports error regarding handle_trailing_share and client thread share usage 2007-02-05 13:21:18 +07:00
ha_ndbcluster_tables.h Many files: 2006-12-27 02:23:51 +01:00
ha_partition.cc Merge bk-internal.mysql.com:/home/bk/mysql-5.1 2007-01-29 01:57:07 +02:00
ha_partition.h Many files: 2006-12-27 02:23:51 +01:00
handler.cc Fixed compiler warnings 2007-02-23 13:13:55 +02:00
handler.h Merge mysql.com:/home/kent/bk/main/mysql-5.0 2006-12-31 01:32:21 +01:00
hash_filo.cc my_strtoll10-x86.s: 2006-12-31 01:02:27 +01:00
hash_filo.h my_strtoll10-x86.s: 2006-12-31 01:02:27 +01:00
hostname.cc Merge mysql.com:/home/kent/bk/main/mysql-5.0 2006-12-31 01:32:21 +01:00
init.cc Merge mysql.com:/home/ram/work/b19690/b19690.5.0 2007-01-31 12:53:36 +04:00
item.cc Fixed compiler warnings 2007-02-23 13:13:55 +02:00
item.h Merge bk-internal.mysql.com:/home/bk/mysql-5.1 2007-01-29 01:57:07 +02:00
item_buff.cc my_strtoll10-x86.s: 2006-12-31 01:02:27 +01:00
item_cmpfunc.cc Fixed compiler warnings 2007-02-23 13:13:55 +02:00
item_cmpfunc.h Merge ibabaev@bk-internal.mysql.com:/home/bk/mysql-5.1-opt 2007-02-13 16:08:01 -08:00
item_create.cc Merge mysql.com:/nfsdisk1/lars/bkroot/mysql-5.1-new-rpl 2007-01-12 12:31:44 +01:00
item_create.h Merge mysql.com:/home/kent/bk/main/mysql-5.0 2006-12-31 01:32:21 +01:00
item_func.cc Fixed compiler warnings 2007-02-23 13:13:55 +02:00
item_func.h Bug #6172: RAND(a) should only accept constant values as arguments 2007-01-23 19:45:58 +02:00
item_geofunc.cc Merge mysql.com:/home/my/mysql-5.0 2007-01-27 03:46:45 +02:00
item_geofunc.h Merge mysql.com:/home/kent/bk/main/mysql-5.0 2006-12-23 20:20:40 +01:00
item_row.cc Merge mysql.com:/home/kent/bk/main/mysql-5.0 2006-12-23 20:20:40 +01:00
item_row.h Merge mysql.com:/home/my/mysql-5.0 2007-01-27 03:46:45 +02:00
item_strfunc.cc Fixed compiler warnings 2007-02-23 13:13:55 +02:00
item_strfunc.h merge of 5.0-opt -> 5.1-opt 2007-01-24 15:55:16 +02:00
item_subselect.cc Merge jamppa@bk-internal.mysql.com:/home/bk/mysql-5.1 2007-02-03 00:58:09 +02:00
item_subselect.h Merge bk-internal.mysql.com:/home/bk/mysql-5.1 2007-01-29 01:57:07 +02:00
item_sum.cc Merge neptunus.(none):/home/msvensson/mysql/mysql-5.1 2007-02-06 15:46:17 +01:00
item_sum.h Merge siva.hindu.god:/home/tsmith/m/bk/mrg-jan17/51 2007-01-18 08:30:35 -07:00
item_timefunc.cc Fixed compiler warnings 2007-02-23 13:13:55 +02:00
item_timefunc.h Merge mysql.com:/home/kent/bk/main/mysql-5.0 2006-12-31 01:32:21 +01:00
item_xmlfunc.cc After merge fixes 2007-01-29 01:47:35 +02:00
item_xmlfunc.h Many files: 2006-12-27 02:23:51 +01:00
key.cc Merge mysql.com:/home/kent/bk/main/mysql-5.0 2006-12-31 01:32:21 +01:00
lex.h Merge malff@bk-internal.mysql.com:/home/bk/mysql-5.1-runtime 2007-01-12 08:11:52 -07:00
lex_symbol.h Merge mysql.com:/home/kent/bk/main/mysql-5.0 2006-12-31 01:32:21 +01:00
lock.cc Fixed compiler warnings 2007-02-23 13:13:55 +02:00
log.cc Fixed compiler warnings 2007-02-23 13:13:55 +02:00
log.h After merge fixes 2007-01-29 01:47:35 +02:00
log_event.cc Fixed compiler warnings 2007-02-23 13:13:55 +02:00
log_event.h Merge bk-internal.mysql.com:/home/bk/mysql-5.0 2007-01-22 14:04:40 +02:00
Makefile.am Fixed compiler warnings 2007-02-23 13:13:55 +02:00
matherr.c my_strtoll10-x86.s: 2006-12-31 01:02:27 +01:00
message.mc
mf_iocache.cc my_strtoll10-x86.s: 2006-12-31 01:02:27 +01:00
my_decimal.cc Merge mysql.com:/home/kent/bk/main/mysql-5.0 2006-12-31 01:32:21 +01:00
my_decimal.h Merge mysql.com:/home/kent/bk/main/mysql-5.0 2006-12-31 01:32:21 +01:00
my_lock.c Merge mysql.com:/home/kent/bk/main/mysql-5.0 2006-12-31 01:32:21 +01:00
mysql_priv.h Fixed compiler warnings 2007-02-23 13:13:55 +02:00
mysqld.cc Fixed compiler warnings 2007-02-23 13:13:55 +02:00
mysqld_suffix.h Many files: 2006-12-23 20:17:15 +01:00
net_serv.cc Merge neptunus.(none):/home/msvensson/mysql/mysql-5.1 2007-02-06 15:46:17 +01:00
nt_servc.cc
nt_servc.h
opt_range.cc Post-merge fix. 2007-02-13 13:15:23 -08:00
opt_range.h Merge mysql.com:/home/my/mysql-5.0 2007-01-27 03:46:45 +02:00
opt_sum.cc Merge mysql.com:/home/gluh/MySQL/Merge/5.0-opt 2007-02-02 10:25:45 +04:00
parse_file.cc Fixed compiler warnings 2007-02-23 13:13:55 +02:00
parse_file.h Merge mysql.com:/home/kent/bk/main/mysql-5.0 2006-12-23 20:20:40 +01:00
partition_element.h Many files: 2006-12-31 02:29:11 +01:00
partition_info.cc After merge fixes 2007-01-29 01:47:35 +02:00
partition_info.h Many files: 2006-12-31 02:29:11 +01:00
password.c Merge mysql.com:/home/my/mysql-5.0 2007-01-27 03:46:45 +02:00
procedure.cc my_strtoll10-x86.s: 2006-12-31 01:02:27 +01:00
procedure.h Merge mysql.com:/home/kent/bk/main/mysql-5.0 2006-12-31 01:32:21 +01:00
protocol.cc After merge fixes 2007-01-29 01:47:35 +02:00
protocol.h Merge dev3-63.(none):/home/zhl/mysql/tree-merge/5.1/mysql-5.1-new-ndb-bj 2007-02-01 17:34:20 +00:00
records.cc Merge mysql.com:/home/kent/bk/main/mysql-5.0 2006-12-31 01:32:21 +01:00
repl_failsafe.cc Fixed compiler warnings 2007-02-23 13:13:55 +02:00
repl_failsafe.h my_strtoll10-x86.s: 2006-12-31 01:02:27 +01:00
rpl_filter.cc Many files: 2006-12-27 02:23:51 +01:00
rpl_filter.h Many files: 2006-12-27 02:23:51 +01:00
rpl_injector.cc Merge mysql.com:/nfsdisk1/lars/bkroot/mysql-5.1-new-rpl 2007-01-12 12:31:44 +01:00
rpl_injector.h Merge mysql.com:/nfsdisk1/lars/bkroot/mysql-5.1-new-rpl 2007-01-12 12:31:44 +01:00
rpl_mi.cc Many files: 2006-12-27 02:23:51 +01:00
rpl_mi.h Many files: 2006-12-27 02:23:51 +01:00
rpl_rli.cc Many files: 2006-12-27 02:23:51 +01:00
rpl_rli.h Many files: 2006-12-27 02:23:51 +01:00
rpl_tblmap.cc Many files: 2006-12-27 02:23:51 +01:00
rpl_tblmap.h Many files: 2006-12-27 02:23:51 +01:00
rpl_utility.cc Many files: 2006-12-31 02:29:11 +01:00
rpl_utility.h Many files: 2006-12-31 02:29:11 +01:00
scheduler.cc Fixed compiler warnings 2007-02-23 13:13:55 +02:00
scheduler.h Fixed compiler warnings 2007-02-23 13:13:55 +02:00
set_var.cc Fixed compiler warnings 2007-02-23 13:13:55 +02:00
set_var.h Fixed compiler warnings 2007-02-23 13:13:55 +02:00
slave.cc Fixed compiler warnings 2007-02-23 13:13:55 +02:00
slave.h After merge fixes 2007-01-29 01:47:35 +02:00
sp.cc After merge fixes 2007-01-29 01:47:35 +02:00
sp.h Merge mysql.com:/home/kent/bk/main/mysql-5.0 2006-12-23 20:20:40 +01:00
sp_cache.cc Many files: 2006-12-23 20:17:15 +01:00
sp_cache.h Many files: 2006-12-23 20:17:15 +01:00
sp_head.cc After merge fixes 2007-01-29 01:47:35 +02:00
sp_head.h Merge mysql.com:/home/my/mysql-5.0 2007-01-27 03:46:45 +02:00
sp_pcontext.cc Many files: 2006-12-23 20:17:15 +01:00
sp_pcontext.h Many files: 2006-12-23 20:17:15 +01:00
sp_rcontext.cc Many files: 2006-12-23 20:17:15 +01:00
sp_rcontext.h Many files: 2006-12-23 20:17:15 +01:00
spatial.cc After merge fixes 2007-01-29 01:47:35 +02:00
spatial.h Merge mysql.com:/home/my/mysql-5.0 2007-01-27 03:46:45 +02:00
sql_acl.cc Fixed compiler warnings 2007-02-23 13:13:55 +02:00
sql_acl.h Merge mysql.com:/home/kent/bk/main/mysql-5.0 2006-12-31 01:32:21 +01:00
sql_analyse.cc Merge rkalimullin@bk-internal.mysql.com:/home/bk/mysql-5.0-maint 2007-02-06 17:18:43 +04:00
sql_analyse.h Merge mysql.com:/home/kent/bk/main/mysql-5.0 2006-12-31 01:32:21 +01:00
sql_array.h Many files: 2006-12-23 20:17:15 +01:00
sql_base.cc Fixed compiler warnings 2007-02-23 13:13:55 +02:00
sql_binlog.cc Many files: 2006-12-31 02:29:11 +01:00
sql_bitmap.h Merge mysql.com:/home/kent/bk/main/mysql-5.0 2006-12-23 20:20:40 +01:00
sql_builtin.cc.in Many files: 2006-12-31 02:29:11 +01:00
sql_cache.cc Merge mysql.com:/home/kent/bk/main/mysql-5.0 2006-12-23 20:20:40 +01:00
sql_cache.h Merge bk-internal.mysql.com:/home/bk/mysql-5.0 2007-01-22 14:04:40 +02:00
sql_class.cc Fixed compiler warnings 2007-02-23 13:13:55 +02:00
sql_class.h Fixed compiler warnings 2007-02-23 13:13:55 +02:00
sql_client.cc my_strtoll10-x86.s: 2006-12-31 01:02:27 +01:00
sql_connect.cc Fixed compiler warnings 2007-02-23 13:13:55 +02:00
sql_crypt.cc Merge mysql.com:/home/kent/bk/main/mysql-5.0 2006-12-31 01:32:21 +01:00
sql_crypt.h my_strtoll10-x86.s: 2006-12-31 01:02:27 +01:00
sql_cursor.cc Merge mysql.com:/home/kent/bk/main/mysql-5.0 2006-12-31 01:32:21 +01:00
sql_cursor.h my_strtoll10-x86.s: 2006-12-31 01:02:27 +01:00
sql_db.cc Merge mysql.com:/home/kent/bk/main/mysql-5.0 2006-12-23 20:20:40 +01:00
sql_delete.cc after merge fix 2007-02-02 14:26:53 +04:00
sql_derived.cc Merge mysql.com:/home/my/mysql-5.0 2007-01-27 03:46:45 +02:00
sql_do.cc Merge mysql.com:/home/kent/bk/main/mysql-5.0 2006-12-31 01:32:21 +01:00
sql_error.cc Merge mysql.com:/home/kent/bk/main/mysql-5.0 2006-12-23 20:20:40 +01:00
sql_error.h Merge mysql.com:/home/kent/bk/main/mysql-5.0 2006-12-23 20:20:40 +01:00
sql_handler.cc Merge mysql.com:/home/kent/bk/main/mysql-5.0 2006-12-23 20:20:40 +01:00
sql_help.cc Merge mysql.com:/home/kent/bk/main/mysql-5.0 2006-12-23 20:20:40 +01:00
sql_insert.cc Fixed compiler warnings 2007-02-23 13:13:55 +02:00
sql_lex.cc Merge olga.mysql.com:/home/igor/mysql-5.0-opt 2007-02-13 01:34:36 -08:00
sql_lex.h Merge jamppa@bk-internal.mysql.com:/home/bk/mysql-5.1 2007-02-03 00:58:09 +02:00
sql_list.cc my_strtoll10-x86.s: 2006-12-31 01:02:27 +01:00
sql_list.h Manual merge. 2007-01-15 13:10:07 +03:00
sql_load.cc Merge mysql.com:/home/my/mysql-5.0 2007-01-27 03:46:45 +02:00
sql_locale.cc Merge mysql.com:/nfsdisk1/lars/bkroot/mysql-5.1-new-rpl 2007-01-12 12:31:44 +01:00
sql_manager.cc Merge mysql.com:/home/kent/bk/main/mysql-5.0 2006-12-31 01:32:21 +01:00
sql_map.cc Merge mysql.com:/home/kent/bk/main/mysql-5.0 2006-12-31 01:32:21 +01:00
sql_map.h my_strtoll10-x86.s: 2006-12-31 01:02:27 +01:00
sql_olap.cc Merge mysql.com:/home/kent/bk/main/mysql-5.0 2006-12-31 01:32:21 +01:00
sql_parse.cc Fixed compiler warnings 2007-02-23 13:13:55 +02:00
sql_partition.cc Fixed compiler warnings 2007-02-23 13:13:55 +02:00
sql_partition.h Many files: 2006-12-27 02:23:51 +01:00
sql_plugin.cc Merge jamppa@bk-internal.mysql.com:/home/bk/mysql-5.1 2007-02-03 00:58:09 +02:00
sql_plugin.h Many files: 2006-12-27 02:23:51 +01:00
sql_prepare.cc Fixed compiler warnings 2007-02-23 13:13:55 +02:00
sql_rename.cc Merge mysql.com:/home/kent/bk/main/mysql-5.0 2006-12-31 01:32:21 +01:00
sql_repl.cc Merge pilot.mysql.com:/home/msvensson/mysql/bug22943/my50-bug22943 2007-01-29 14:35:09 +01:00
sql_repl.h Merge mysql.com:/home/kent/bk/main/mysql-5.0 2006-12-31 01:32:21 +01:00
sql_select.cc Fixed compiler warnings 2007-02-23 13:13:55 +02:00
sql_select.h Merge mysql.com:/home/psergey/mysql-5.0-bug8804-r12 2007-01-24 22:28:28 +03:00
sql_servers.cc After merge fixes 2007-01-29 01:47:35 +02:00
sql_servers.h After merge fixes 2007-01-29 01:47:35 +02:00
sql_show.cc Fixed compiler warnings 2007-02-23 13:13:55 +02:00
sql_show.h Many files: 2006-12-31 02:29:11 +01:00
sql_sort.h Many files: 2006-12-23 20:17:15 +01:00
sql_state.c Many files: 2006-12-23 20:17:15 +01:00
sql_string.cc Merge mysql.com:/home/my/mysql-5.0 2007-01-27 03:46:45 +02:00
sql_string.h Merge mysql.com:/home/my/mysql-5.0 2007-01-27 03:46:45 +02:00
sql_table.cc Fixed compiler warnings 2007-02-23 13:13:55 +02:00
sql_tablespace.cc Many files: 2006-12-27 02:23:51 +01:00
sql_test.cc Fixed compiler warnings 2007-02-23 13:13:55 +02:00
sql_trigger.cc Merge mysql.com:/home/my/mysql-5.0 2007-01-27 03:46:45 +02:00
sql_trigger.h Merge mysql.com:/home/my/mysql-5.0 2007-01-27 03:46:45 +02:00
sql_udf.cc Merge macbook.local:/Users/kgeorge/mysql/work/mysql-5.0-opt 2007-01-08 12:32:48 +02:00
sql_udf.h my_strtoll10-x86.s: 2006-12-31 01:02:27 +01:00
sql_union.cc Merge bk-internal.mysql.com:/home/bk/mysql-5.1 2007-01-29 01:57:07 +02:00
sql_update.cc Post-merge fix. 2007-02-13 13:15:23 -08:00
sql_view.cc Fixed compiler warnings 2007-02-23 13:13:55 +02:00
sql_view.h Merge mysql.com:/home/kent/bk/main/mysql-5.0 2006-12-23 20:20:40 +01:00
sql_yacc.yy Merge ppcg5.local:/Users/antony/Work/p3-bug12204.4 2007-02-08 15:13:54 -08:00
stacktrace.c Many files: 2006-12-23 20:17:15 +01:00
stacktrace.h Many files: 2006-12-23 20:17:15 +01:00
strfunc.cc Merge mysql.com:/home/kent/bk/main/mysql-5.0 2006-12-23 20:20:40 +01:00
structs.h Merge mysql.com:/home/kent/bk/main/mysql-5.0 2006-12-31 01:32:21 +01:00
table.cc Merge olga.mysql.com:/home/igor/mysql-5.0-opt 2007-02-13 01:34:36 -08:00
table.h Merge olga.mysql.com:/home/igor/mysql-5.0-opt 2007-02-13 01:34:36 -08:00
thr_malloc.cc my_strtoll10-x86.s: 2006-12-31 01:02:27 +01:00
time.cc Merge mysql.com:/home/kent/bk/main/mysql-5.0 2006-12-31 01:32:21 +01:00
tzfile.h Many files: 2006-12-23 20:17:15 +01:00
tztime.cc Fixed compiler warnings 2007-02-23 13:13:55 +02:00
tztime.h Merge mysql.com:/home/kent/bk/main/mysql-5.0 2006-12-23 20:20:40 +01:00
udf_example.c Many files: 2006-12-23 20:17:15 +01:00
udf_example.def Fixed compiler warnings 2007-02-23 13:13:55 +02:00
uniques.cc Many files: 2006-12-23 20:17:15 +01:00
unireg.cc Fixed compiler warnings 2007-02-23 13:13:55 +02:00
unireg.h Merge mysql.com:/home/kent/bk/main/mysql-5.0 2006-12-31 01:32:21 +01:00