mariadb/sql
unknown 484cf319c5 Fixed Bug#2123, mysqld segmentation faulted when it tried to
open a file that already existed. The problem was that end_io_cache()
was called even if init_io_cache() was not. This affected both
OUTFILE and DUMPFILE (both fixed). Sometimes wrongly aligned pointer was freed,
sometimes mysqld core dumped.

Other problem was that select_dump::send_error removed the dumpfile,
even if it was created by an earlier run, or by some other program, if
the file permissions just permitted it. Fixed it so that the file will
only be deleted, if an error occurred, but the file was created by mysqld
just a moment ago, in that thread.

On the other hand, select_export did not handle the corresponding garbage
file at all. Both fixed.

After these fixes, a big part of the select_export::prepare and select_dump::prepare
code became identical. Merged the code into a new function called create_file(),
which is now called by the two latter functions.

Regards,
Jani


mysys/mf_iocache.c:
  Fixed a bug in comment.
2004-01-15 06:48:31 +02:00
..
share latin1.xml, Index.xml: 2003-12-29 19:58:18 +04:00
.cvsignore
add_errmsg
client_settings.h Fix for #2126 2003-12-18 18:12:00 +04:00
custom_conf.h
derror.cc Merge key cache structures to one 2003-11-20 22:06:25 +02:00
des_key_file.cc Merge with 4.0.16 2003-10-07 15:42:26 +03:00
field.cc merge 2003-12-19 16:34:48 +02:00
field.h Fixes after merge with 4.0 2003-12-19 16:25:50 +02:00
field_conv.cc insert table select * from table2 now converts charsets correctly 2003-12-13 18:49:10 +01:00
filesort.cc Portability fixes found during 5.0 test compilation 2003-12-21 19:39:32 +02:00
frm_crypt.cc
gen_lex_hash.cc - Polished mysql-copyright a bit and added call to remove 2003-09-23 00:38:01 +02:00
gstream.cc
gstream.h
ha_berkeley.cc Bitmap post-review fixes 2003-10-30 19:17:57 +01:00
ha_berkeley.h Bitmap post-review fixes 2003-10-30 19:17:57 +01:00
ha_heap.cc Added missing SSL library (Should be in source distribution) 2003-11-28 12:18:13 +02:00
ha_heap.h
ha_innodb.cc THD::lex now points to THD::main_lex like in 5.0 2003-12-19 20:52:13 +03:00
ha_innodb.h fixes to Bitmap class 2003-10-24 22:44:48 +02:00
ha_isam.cc key_map with more that 64 bits width 2003-10-11 13:06:55 +02:00
ha_isam.h
ha_isammrg.cc added 'explicit' keyword to Bitmap constructor 2003-11-21 19:16:19 +03:00
ha_isammrg.h
ha_myisam.cc THD::lex now points to THD::main_lex like in 5.0 2003-12-19 20:52:13 +03:00
ha_myisam.h Merge bk-internal:/home/bk/mysql-4.1/ 2003-10-31 10:34:34 +01:00
ha_myisammrg.cc Merge key cache structures to one 2003-11-20 22:06:25 +02:00
ha_myisammrg.h After merge fixes 2003-08-19 00:08:08 +03:00
handler.cc WorkLog #1323 (part 2) 2003-12-17 22:52:03 +00:00
handler.h WorkLog #1323 (part 2) 2003-12-17 22:52:03 +00:00
hash_filo.cc
hash_filo.h SCRUM 2003-09-19 14:44:31 +05:00
hostname.cc Don't flush cur_log (relay log) on flush_relay_log_info becasue this crashes the server if cur_log is 'hot' and the io_thread has changed log file. 2003-11-22 03:21:40 +02:00
init.cc Simplified 'wrong xxx name' error messages by introducing 'general' ER_WRONG_NAME error 2003-11-03 14:01:59 +02:00
item.cc THD::lex now points to THD::main_lex like in 5.0 2003-12-19 20:52:13 +03:00
item.h Portability fixes found during 5.0 test compilation 2003-12-21 19:39:32 +02:00
item_buff.cc
item_cmpfunc.cc THD::lex now points to THD::main_lex like in 5.0 2003-12-19 20:52:13 +03:00
item_cmpfunc.h join_outer.result, null.result, null.test, item_cmpfunc.h: 2003-12-01 13:59:09 -08:00
item_create.cc THD::lex now points to THD::main_lex like in 5.0 2003-12-19 20:52:13 +03:00
item_create.h WL#1253: LAST_DAY 2003-11-17 18:02:08 +04:00
item_func.cc #2244 User variables collation conflict is not detected 2003-12-31 19:01:03 +04:00
item_func.h Fixes after merge with 4.0 2003-12-19 16:25:50 +02:00
item_geofunc.cc
item_geofunc.h fixed printability of gis functions 2003-11-06 21:03:11 +02:00
item_row.cc fixed printability of Items (all items except subselects) 2003-10-12 17:56:05 +03:00
item_row.h fixed printability of Items (all items except subselects) 2003-10-12 17:56:05 +03:00
item_strfunc.cc item_strfunc.cc: 2004-01-14 17:26:30 +04:00
item_strfunc.h Merge with 4.0.17 2003-12-17 17:35:34 +02:00
item_subselect.cc THD::lex now points to THD::main_lex like in 5.0 2003-12-19 20:52:13 +03:00
item_subselect.h Added missing SSL library (Should be in source distribution) 2003-11-28 12:18:13 +02:00
item_sum.cc THD::lex now points to THD::main_lex like in 5.0 2003-12-19 20:52:13 +03:00
item_sum.h Fixes after merge with 4.0 2003-12-19 16:25:50 +02:00
item_timefunc.cc Bug 2202: CAST from binary to char still returns a binary string 2003-12-25 17:42:17 +04:00
item_timefunc.h WL#1253: LAST_DAY 2003-11-17 18:02:08 +04:00
item_uniq.cc
item_uniq.h added code covarage for functions convert(), nullif(), crc32(), is_used_lock(), char_lengtrh(), bit_xor() 2003-10-30 12:57:26 +02:00
key.cc added code covarage for functions convert(), nullif(), crc32(), is_used_lock(), char_lengtrh(), bit_xor() 2003-10-30 12:57:26 +02:00
lex.h WorkLog #1323 (part 2) 2003-12-17 22:52:03 +00:00
lex_symbol.h
lock.cc merge 2003-09-24 10:24:56 +03:00
log.cc Merge with 4.0.17 2003-12-17 17:35:34 +02:00
log_event.cc Portability fixes found during 5.0 test compilation 2003-12-21 19:39:32 +02:00
log_event.h Merge with 4.0.17 2003-12-17 17:35:34 +02:00
Makefile.am - added sql_bitmap.h to the source distribution 2003-11-12 12:32:51 +01:00
matherr.c
mf_iocache.cc
my_lock.c
mysql_priv.h fix for the 2361 bug: ALTER TABLE ... DROP PRIMARY KEY drops a non-primary key 2004-01-14 16:01:55 +04:00
mysqld.cc install_test_db.sh: 2003-12-24 16:04:25 +04:00
net_serv.cc Fix for #2126 (mysql_server_init call shouldn't be needed) 2003-12-18 15:51:22 +04:00
nt_servc.cc Merge with 4.0.17 2003-12-17 17:35:34 +02:00
nt_servc.h
opt_ft.cc Add new user variables for tuning memory usage: 2003-10-11 22:00:24 +03:00
opt_ft.h Add new user variables for tuning memory usage: 2003-10-11 22:00:24 +03:00
opt_range.cc merge with 4.0.18 2003-12-19 16:42:17 +02:00
opt_range.h fixes to Bitmap class 2003-10-24 22:44:48 +02:00
opt_sum.cc Merge key cache structures to one 2003-11-20 22:06:25 +02:00
password.c C cleanups 2003-09-03 16:31:01 +02:00
procedure.cc
procedure.h
protocol.cc THD::lex now points to THD::main_lex like in 5.0 2003-12-19 20:52:13 +03:00
protocol.h Added missing SSL library (Should be in source distribution) 2003-11-28 12:18:13 +02:00
protocol_cursor.cc Added missing SSL library (Should be in source distribution) 2003-11-28 12:18:13 +02:00
records.cc Merge with 4.0.17 2003-12-17 17:35:34 +02:00
repl_failsafe.cc THD::lex now points to THD::main_lex like in 5.0 2003-12-19 20:52:13 +03:00
repl_failsafe.h
set_var.cc merge 2003-12-19 16:34:48 +02:00
set_var.h WorkLog #1323 (part 2) 2003-12-17 22:52:03 +00:00
slave.cc THD::init_for_queries() pushed back: 2003-12-21 22:26:45 +03:00
slave.h Replication: 2003-11-23 17:02:59 +01:00
spatial.cc Removed some warnings reported by valgrind 2003-11-04 14:09:03 +02:00
spatial.h
sql_acl.cc typo fixed 2003-12-21 21:18:59 +01:00
sql_acl.h Fixes after merge with 4.0 2003-12-19 16:25:50 +02:00
sql_analyse.cc Merge with 4.0.17 2003-12-17 17:35:34 +02:00
sql_analyse.h
sql_base.cc THD::lex now points to THD::main_lex like in 5.0 2003-12-19 20:52:13 +03:00
sql_bitmap.h added 'explicit' keyword to Bitmap constructor 2003-11-21 19:16:19 +03:00
sql_cache.cc SCRUM 2004-01-07 16:41:09 +04:00
sql_cache.h SCRUM 2003-12-01 17:19:10 +04:00
sql_class.cc Fixed Bug#2123, mysqld segmentation faulted when it tried to 2004-01-15 06:48:31 +02:00
sql_class.h short patch for bug #2184 'Prepared statements in embedded library was 2003-12-23 15:38:19 +03:00
sql_client.cc merge 2003-12-19 16:34:48 +02:00
sql_crypt.cc
sql_crypt.h
sql_db.cc Fix for BUG#2333 "ALTER DATABASE on inexistent database hangs the client": 2004-01-12 21:05:41 +01:00
sql_delete.cc Add cast of integer/longlong to (ulong) to make printf/sprintf 64 bit safe 2003-12-20 03:41:04 +02:00
sql_derived.cc Merge 2003-11-28 13:31:38 +02:00
sql_do.cc fixed error handling in SET and DO operators (BUG#1484) 2003-10-08 11:19:09 +03:00
sql_error.cc THD::lex now points to THD::main_lex like in 5.0 2003-12-19 20:52:13 +03:00
sql_handler.cc Merge with 4.0 to get: 2003-11-20 22:30:48 +02:00
sql_help.cc fix for the 2361 bug: ALTER TABLE ... DROP PRIMARY KEY drops a non-primary key 2004-01-14 16:01:55 +04:00
sql_insert.cc THD::lex now points to THD::main_lex like in 5.0 2003-12-19 20:52:13 +03:00
sql_lex.cc THD::lex now points to THD::main_lex like in 5.0 2003-12-19 20:52:13 +03:00
sql_lex.h THD::lex now points to THD::main_lex like in 5.0 2003-12-19 20:52:13 +03:00
sql_list.cc
sql_list.h Added missing SSL library (Should be in source distribution) 2003-11-28 12:18:13 +02:00
sql_load.cc Merge with 4.0.17 2003-12-17 17:35:34 +02:00
sql_manager.cc
sql_manager.h
sql_map.cc
sql_map.h
sql_olap.cc
sql_parse.cc Merge 2004-01-07 12:54:28 +04:00
sql_prepare.cc Fix for #2184 (Prepared statements if embedded library broken) 2003-12-23 17:17:45 +04:00
sql_rename.cc Merge with 4.0.17 2003-12-17 17:35:34 +02:00
sql_repl.cc THD::lex now points to THD::main_lex like in 5.0 2003-12-19 20:52:13 +03:00
sql_repl.h Merge with 4.0.14 2003-08-11 22:44:43 +03:00
sql_select.cc fix for the 2361 bug: ALTER TABLE ... DROP PRIMARY KEY drops a non-primary key 2004-01-14 16:01:55 +04:00
sql_select.h Added missing SSL library (Should be in source distribution) 2003-11-28 12:18:13 +02:00
sql_show.cc Merge bk-internal:/home/bk/mysql-4.1/ 2004-01-14 14:08:56 +01:00
sql_sort.h
sql_state.c
sql_string.cc Bug 2202: CAST from binary to char still returns a binary string 2003-12-25 17:42:17 +04:00
sql_string.h after review fix 2003-11-03 12:28:36 +02:00
sql_table.cc fix for the 2361 bug: ALTER TABLE ... DROP PRIMARY KEY drops a non-primary key 2004-01-14 16:01:55 +04:00
sql_test.cc Merge key cache structures to one 2003-11-20 22:06:25 +02:00
sql_udf.cc merge with 4.0 for more memory allocation variables. 2003-10-13 15:50:30 +03:00
sql_udf.h hanged UDF interface to use clear() instead of reset() 2003-08-27 22:30:50 +03:00
sql_union.cc THD::lex now points to THD::main_lex like in 5.0 2003-12-19 20:52:13 +03:00
sql_update.cc THD::lex now points to THD::main_lex like in 5.0 2003-12-19 20:52:13 +03:00
sql_yacc.yy THD::lex now points to THD::main_lex like in 5.0 2003-12-19 20:52:13 +03:00
stacktrace.c
stacktrace.h
strfunc.cc Merge key cache structures to one 2003-11-20 22:06:25 +02:00
structs.h CLIENT_MULTI_QUERIES -> CLIENT_MULTI_STATEMENTS 2003-11-18 13:47:27 +02:00
table.cc fix for the 2361 bug: ALTER TABLE ... DROP PRIMARY KEY drops a non-primary key 2004-01-14 16:01:55 +04:00
table.h Merge with 4.0.17 2003-12-17 17:35:34 +02:00
thr_malloc.cc
time.cc Merge with 4.0.17 2003-12-17 17:35:34 +02:00
udf_example.cc Corrected faulty #if tests in udf_example.cc which made udf_test crash the server on some 2003-12-18 17:46:56 +01:00
uniques.cc Merge with 4.0.17 2003-12-17 17:35:34 +02:00
unireg.cc Removed some warnings reported by valgrind 2003-11-04 14:09:03 +02:00
unireg.h unused variable max_prep_stmt_count removed 2003-12-05 01:55:57 +03:00
watchdog_mysqld