mariadb/mysql-test/t
unknown e97722e495 Fix for BUG#2083
"EE_ error codes (EE_DELETE, EE_WRITE) end up in the binlog, making slave stop".
The problem was that during execution of the command on the master, an error
can occur (for example, not space left on device, then mysqld waits and when
there is space it completes successfully: so finally it worked but the error
EE_WRITE remains in thd->net.last_errno and thd->net.last_error).
To know if finally the command succeeded, we test the 'error' variable in
every place, and if it shows no failure we reset thd->net.last_err* using
the function THD::clear_error() which is backported from 4.1.
A new test to see if now only real errors get to the binlog (note: the test
uses "rm").

Also a bit of memory free/alloc saving in log_event.cc (do not free the whole
mem_root after every query in the slave SQL thread: we can keep the initial
block of it; which will be freed when the thread terminates).


sql/log_event.cc:
  In the slave SQL thread, it's a waste to free the initial block of the mem_root
  after every query. We can instead keep it. It will be freed when the thread
  terminates (in THD::~THD()).
sql/sql_acl.cc:
  clear the error in thd->net.last_errno as there was no error
sql/sql_base.cc:
  clear the error in thd->net.last_errno as there was no error
sql/sql_class.h:
  Backport of THD::clear_error() from 4.1:
  clears the error in thd->net.last_errno
sql/sql_db.cc:
  clear the error in thd->net.last_errno as there was no error
sql/sql_delete.cc:
  clear the error in thd->net.last_errno as there was no error
sql/sql_insert.cc:
  clear the error in thd->net.last_errno as there was no error
sql/sql_parse.cc:
  clear the error in thd->net.last_errno as there was no error
sql/sql_rename.cc:
  clear the error in thd->net.last_errno as there was no error
sql/sql_table.cc:
  clear the error in thd->net.last_errno as there was no error
sql/sql_update.cc:
  clear the error in thd->net.last_errno as there was no error
2003-12-16 11:10:50 +01:00
..
alias.test Proposed fix for #751 2003-07-03 20:57:51 +05:00
alter_table.test Fixed bug in ALTER TABLE ... DISABLE/ENABLE KEYS 2003-07-08 23:58:04 +03:00
analyse.test
ansi-master.opt
ansi.test
auto_increment.test
backup-master.sh
backup.test
bdb-alter-table-1.test
bdb-alter-table-2-master.opt
bdb-alter-table-2.test
bdb-crash.test
bdb-deadlock.test
bdb.test Allow space in service names 2003-12-04 19:48:10 +02:00
bdb_cache-master.opt
bdb_cache.test
bench_count_distinct.test
bigint.test Revert patch for bigint handling in double context as it broke normal bigint handling 2003-11-21 00:11:50 +02:00
binary.test
bool.test
bulk_replace.test
case.test
cast.test
check.test
comments.test
compare.test
constraints.test
convert.test
count_distinct.test
count_distinct2-master.opt
count_distinct2.test
create.test Better fix for CREATE TABLE IF NOT EXISTS ... SELECT 2003-10-15 21:41:13 +03:00
ctype_cp1251-master.opt
ctype_cp1251.test
ctype_latin1_de-master.opt
ctype_latin1_de.test my_strnncoll_latin1_de rewritten from scratch. Bug with overlapping combos went away. 2003-07-17 20:17:46 +02:00
ctype_ujis-master.opt
ctype_ujis.test
delayed.test
delete.test
dirty_close.test
distinct.test Cleanups 2003-07-09 00:55:07 +03:00
drop.test
drop_temp_table.test fix for a random test failure on hpux/ia64 2003-09-29 22:56:31 +02:00
empty_table.test
errors.test
explain.test
flush.test
flush_table.test
foreign_key.test
fulltext.test yet another trunc* bug 2003-11-20 23:15:07 +01:00
fulltext_cache.test
fulltext_distinct.test
fulltext_left_join.test more left join tests 2003-11-20 22:20:54 +01:00
fulltext_multi.test Removed random chars after filename for LOAD DATA INFILE (in mysqlbinlog) 2003-09-29 12:31:35 +03:00
fulltext_order_by.test Removed random chars after filename for LOAD DATA INFILE (in mysqlbinlog) 2003-09-29 12:31:35 +03:00
fulltext_update.test
fulltext_var.test
func_concat.test
func_crypt.test Fix for bug #1271: Undefined variable in PASSWORD() function is not 2003-10-21 15:14:06 +05:00
func_date_add.test
func_encrypt-master.opt
func_encrypt.test
func_equal.test
func_group.test
func_if.test
func_in.test
func_isnull.test
func_like.test
func_math.test
func_misc.test
func_op.test
func_regexp.test
func_set.test Fix for the bug #803. 2003-07-10 15:27:02 +05:00
func_str.test Fix for bug#1944 'Function RPad() sometimes produce unexpected result' 2003-12-04 14:12:01 +04:00
func_system.test
func_test.test After merge fixes 2003-08-22 18:43:46 +03:00
func_time.test WL#1175: more default_week_formats for iso compatibility 2003-12-07 15:10:21 +04:00
func_timestamp.test
gcc296.test
grant.test Cleaned up last bug fixes 2003-09-09 20:06:50 +03:00
grant_cache-master.opt
grant_cache.test
group_by.test Test case for bug #807 2003-07-09 22:33:26 +03:00
handler.test fix and test case for the bug #787: HANDLER without INDEX doesn't work with deleted rows 2003-07-04 17:15:16 +05:00
having.test
heap.test
innodb-deadlock.test
innodb.test Allow space in service names 2003-12-04 19:48:10 +02:00
innodb_cache-master.opt
innodb_cache.test
innodb_handler.test
insert.test Removed random chars after filename for LOAD DATA INFILE (in mysqlbinlog) 2003-09-29 12:31:35 +03:00
insert_select.test Fixed memory overrun when doing REPAIR on table with multi-part auto_increment key where one part was a packed CHAR 2003-07-18 04:04:24 +03:00
isam.test merge with 3.23 to get for overrun in ISAM tables with man fields and a blob. 2003-08-28 12:35:36 +03:00
join.test
join_crash.test
join_outer.test
key.test
key_diff.test
key_primary.test
keywords.test
kill.test
limit.test
loaddata.test Move test that uses many tables (in query_cache.test) to separate test so that we can get it 'skipped' instead of 'failed' on system where we can't open many files. 2003-08-22 04:07:40 +03:00
lock.test
lock_multi.test
lock_tables_lost_commit-master.opt Fix test case 2003-08-19 16:03:18 +03:00
lock_tables_lost_commit.test
lowercase_table-master.opt
lowercase_table.test Revert change of lower-case-table handling as this breaks how alias works. 2003-08-29 04:17:30 +03:00
merge.test
mix_innodb_myisam_binlog.test Cleaned up last bug fixes 2003-09-09 20:06:50 +03:00
multi_update-master.opt
multi_update.test Allow space in service names 2003-12-04 19:48:10 +02:00
myisam.test Merge with 3.23 to get 4.0 tree in sync (no relevant changes to 4.0 tree) 2003-10-23 13:25:16 +03:00
mysqlbinlog-master.opt Test for mysqlbinlog 2003-09-24 23:25:58 +04:00
mysqlbinlog.test fixed temp directory for mysqlbinlog (was wrong on solaris) 2003-10-08 17:15:59 -04:00
mysqldump.test #1169: Add --exec command to mysqltest 2003-09-24 16:13:47 +05:00
null.test
null_key.test
odbc.test
olap.test
openssl_1.test openssl_1.result, openssl_1.test: 2003-08-07 15:20:15 +02:00
order_by.test bug #1945. item(expression)->name=0, crash in find_item_in_list 2003-11-28 12:36:45 +01:00
order_fill_sortbuf-master.opt
order_fill_sortbuf.test
outfile.test
overflow.test
packet.test Fixed some varnings from valgrind 2003-08-20 16:25:44 +03:00
query_cache.test fixed server crash on moving query block with pointers to same table in it (BUG#988) 2003-09-15 15:16:13 +03:00
query_cache_merge.test Add detection of in_addr_t 2003-08-28 06:08:17 +03:00
raid.test
range.test Fixed range optimzier bug (Bug #1828) 2003-11-28 15:45:34 +02:00
README
rename.test
repair.test
repair_part2-master.sh
repair_part2.test
replace.test
rollback.test
rpl000001.test
rpl000002.test
rpl000003.test
rpl000004.test
rpl000005.test
rpl000006.test
rpl000008-slave.opt
rpl000008.test
rpl000009-slave.opt
rpl000009.test removing my chmods so that the test can be run on non-Unix platforms 2003-09-19 19:07:41 +02:00
rpl000010-slave.opt
rpl000010.test
rpl000011.test
rpl000012.test
rpl000013-slave.opt
rpl000013.test
rpl000015-slave.sh
rpl000015.slave-mi
rpl000015.test
rpl000016-slave.opt
rpl000017-slave.opt
rpl000017-slave.sh
rpl000017.test
rpl000018-master.opt
rpl000018-slave.opt
rpl000018.test
rpl_alter.test
rpl_chain_temp_table.test 4 small items in this: 2003-10-31 23:20:23 +01:00
rpl_change_master.test Fix test for binary builds 2003-11-23 21:03:10 +02:00
rpl_do_grant.test Fix so that SET PASSWORD is not replicated by the slave if running with 2003-08-02 23:46:26 +02:00
rpl_EE_error.test Fix for BUG#2083 2003-12-16 11:10:50 +01:00
rpl_empty_master_crash.test
rpl_error_ignored_table-slave.opt Fix for BUG#812 2003-07-10 16:03:29 +02:00
rpl_error_ignored_table.test - fixed an error in the rpl_error_ignored_table test suite: the master 2003-07-11 22:18:53 +02:00
rpl_failsafe.test
rpl_flush_log_loop-master.opt
rpl_flush_log_loop-master.sh
rpl_flush_log_loop-slave.opt
rpl_flush_log_loop-slave.sh
rpl_flush_log_loop.test Better fix for bug #791: At binlog rotation, INSERTs may not find their way into the binlog 2003-07-14 14:59:26 +03:00
rpl_get_lock.test
rpl_ignore_grant-slave.opt Fix so that SET PASSWORD is not replicated by the slave if running with 2003-08-02 23:46:26 +02:00
rpl_ignore_grant.test Fix so that SET PASSWORD is not replicated by the slave if running with 2003-08-02 23:46:26 +02:00
rpl_insert_id.test Review of changesets since last pull. 2003-08-07 20:16:37 +03:00
rpl_loaddata.test Fix for BUG#1391: 2003-09-25 00:14:46 +02:00
rpl_loaddata_rule_m-master.opt First commit for fixing BUG#1100 2003-08-20 23:24:45 +02:00
rpl_loaddata_rule_m.test First commit for fixing BUG#1100 2003-08-20 23:24:45 +02:00
rpl_loaddata_rule_s-slave.opt First commit for fixing BUG#1100 2003-08-20 23:24:45 +02:00
rpl_loaddata_rule_s.test First commit for fixing BUG#1100 2003-08-20 23:24:45 +02:00
rpl_loaddatalocal.test
rpl_log-master.opt
rpl_log-slave.opt Result updates after Dmitri's and my changes to logging with --log-slave-updates. 2003-08-21 00:23:39 +02:00
rpl_log.test Result updates after Dmitri's and my changes to logging with --log-slave-updates. 2003-08-21 00:23:39 +02:00
rpl_log_pos.test
rpl_master_pos_wait.test
rpl_max_relay_size.test Fixed wrong test in LOG::close 2003-07-14 23:49:19 +03:00
rpl_multi_update.test - Fix for BUG#1858 "SQL-Thread stops working when using optimize table": 2003-12-04 22:42:18 +01:00
rpl_mystery22.test
rpl_redirect.test
rpl_relayspace-slave.opt
rpl_relayspace.test
rpl_replicate_do-slave.opt
rpl_replicate_do.test
rpl_reset_slave.test When we delete the slave's temp tables from memory, we reset 2003-11-03 18:24:01 +01:00
rpl_rotate_logs-master.opt WL#912 (more user control on relay logs): 2003-07-06 17:59:54 +02:00
rpl_rotate_logs-slave.sh
rpl_rotate_logs.slave-mi
rpl_rotate_logs.test
rpl_skip_error-slave.opt
rpl_skip_error.test
rpl_sporadic_master-master.opt
rpl_sporadic_master.test
rpl_trunc_binlog.test A fix for a random test failure rpl_trunc_binlog: don't RESET MASTER 2003-10-17 00:00:25 +02:00
sel000001.test
sel000002.test
sel000003.test
sel000031.test
sel000032.test
sel000033.test
sel000100.test
select.test select.test cleanup 2003-09-16 20:28:29 +04:00
select_found.test
select_safe.test Move test that uses many tables (in query_cache.test) to separate test so that we can get it 'skipped' instead of 'failed' on system where we can't open many files. 2003-08-22 04:07:40 +03:00
show_check.test Add column names for metadata when running mysql with -T 2003-08-27 10:26:03 +03:00
status.test
symlink.test Better fix for myisamchk --sort-index on windows 2003-08-25 17:19:44 +03:00
tablelock.test
temp_table.test
timezone-master.opt
timezone.test
truncate.test
type_blob.test
type_date.test Bug #792 combination of date-interval and between with mixed constant and non-constant 2003-08-06 15:37:22 +02:00
type_datetime.test Fix for Bug #1448 "Date parsing fails, and fails to complain 2003-12-02 20:25:45 +03:00
type_decimal.test
type_enum.test
type_float.test
type_ranges.test
type_set.test
type_time.test
type_timestamp.test Fix for Bug #1448 "Date parsing fails, and fails to complain 2003-12-02 20:25:45 +03:00
type_uint.test
type_year.test
union.test Fix for bug #1564: CREATE TABLE + UNION + same table name = crash 2003-11-11 18:14:49 +04:00
update.test
user_var.test Bug#1826, HANDLER+ALTER TABLE=crash (unfortunately, it cannot be tested in mysql-test suite) 2003-11-18 22:06:47 +01:00
varbinary.test
variables-master.opt
variables.test Fixed bug in SET enum_system_variable=NULL 2003-10-14 16:30:42 +03:00
warnings.test