mariadb/mysql-test/suite/binlog/r
Alfranio Correia 89850be0f5 BUG#53560 CREATE TEMP./DROP TEMP. are not binglogged correctly after a failed statement
This patch fixes two problems described as follows:

1 - If there is an on-going transaction and a temporary table is created or
dropped, any failed statement that follows the "create" or "drop commands"
triggers a rollback and by consequence the slave will go out sync because
the binary log will have a wrong sequence of events.

To fix the problem, we changed the expression that evaluates when the
cache should be flushed after either the rollback of a statment or
transaction.

2 - When a "CREATE TEMPORARY TABLE SELECT * FROM" was executed the
OPTION_KEEP_LOG was not set into the thd->options. For that reason, if
the transaction had updated only transactional engines and was rolled
back at the end (.e.g due to a deadlock) the changes were not written
to the binary log, including the creation of the temporary table.
      
To fix the problem, we have set the OPTION_KEEP_LOG into the thd->options
when a "CREATE TEMPORARY TABLE SELECT * FROM" is executed.
2010-05-19 18:01:12 +01:00
..
binlog_auto_increment_bug33029.result
binlog_base64_flag.result
binlog_database.result Merge BUG#43263 from 5.0-bugteam to 5.1-bugteam 2009-05-31 13:44:41 +08:00
binlog_delete_and_flush_index.result BUG#34582: FLUSH LOGS does not close and reopen the binlog index 2009-10-20 09:39:40 +01:00
binlog_grant.result
binlog_incident.result Bug#46010 main.ctype_gbk_binlog fails sporadically : Table 't2' already exists 2009-09-07 13:42:54 +08:00
binlog_index.result BUG#49638 binlog_index fails in mysql-trunk-merge 2009-12-16 19:52:56 +00:00
binlog_innodb.result Merge BUG#43263 from 5.0-bugteam to 5.1-bugteam 2009-05-31 13:44:41 +08:00
binlog_innodb_row.result Post-push fix for BUG#51251. 2010-03-09 23:41:21 +00:00
binlog_killed.result
binlog_killed_simulate.result BUG#49479: Slave stops with syntax error: LOAD DATA event without 2009-12-06 01:11:32 +00:00
binlog_mix_innodb_stat.result
binlog_mixed_failure_mixing_engines.result BUG#47678 Changes to n-tables that happen early in a trans. are only flushed upon commit 2009-10-06 01:54:00 +01:00
binlog_multi_engine.result Merge BUG#43263 from 5.0-bugteam to 5.1-bugteam 2009-05-31 13:44:41 +08:00
binlog_old_versions.result
binlog_row_binlog.result Bug#46640: output from mysqlbinlog command in 5.1 breaks replication 2009-10-14 09:39:05 +08:00
binlog_row_ctype_cp932.result
binlog_row_ctype_ucs.result Merge BUG#43263 from 5.0-bugteam to 5.1-bugteam 2009-05-31 13:44:41 +08:00
binlog_row_drop_tmp_tbl.result Manual Merge 2009-11-03 18:20:08 +08:00
binlog_row_failure_mixing_engines.result BUG#47678 Changes to n-tables that happen early in a trans. are only flushed upon commit 2009-10-06 01:54:00 +01:00
binlog_row_innodb_stat.result
binlog_row_insert_select.result Merge BUG#43263 from 5.0-bugteam to 5.1-bugteam 2009-05-31 13:44:41 +08:00
binlog_row_mix_innodb_myisam.result Bug #50942 mix_innodb_myisam_side_effects.test is not deterministic 2010-05-04 22:31:49 +03:00
binlog_row_mysqlbinlog_db_filter.result BUG#42941: --database paramater to mysqlbinlog fails with RBR 2009-06-07 23:28:08 +01:00
binlog_row_mysqlbinlog_verbose.result Attempt to fix Windows testcase output issue 2009-10-14 21:25:11 +08:00
binlog_sql_mode.result
binlog_start_comment.result
binlog_statement_insert_delayed.result
binlog_stm_binlog.result Bug#46640: output from mysqlbinlog command in 5.1 breaks replication 2009-10-14 09:39:05 +08:00
binlog_stm_blackhole.result BUG#49479: Slave stops with syntax error: LOAD DATA event without 2009-12-06 01:11:32 +00:00
binlog_stm_ctype_cp932.result
binlog_stm_ctype_ucs.result
binlog_stm_do_db.result BUG#42829: binlogging enabled for all schemas regardless of 2009-09-24 15:52:52 +01:00
binlog_stm_drop_tmp_tbl.result Manual Merge 2009-11-03 18:20:08 +08:00
binlog_stm_innodb_stat.result
binlog_stm_insert_select.result
binlog_stm_mix_innodb_myisam.result BUG#53560 CREATE TEMP./DROP TEMP. are not binglogged correctly after a failed statement 2010-05-19 18:01:12 +01:00
binlog_stm_ps.result
binlog_stm_row.result BUG#47995: Mark system functions as unsafe 2009-11-18 15:50:31 +01:00
binlog_stm_unsafe_warning.result Bug#46265: Can not disable warning about unsafe statements for binary logging 2009-07-31 10:00:35 -03:00
binlog_tmp_table.result BUG#51226: mysqlbinlog replay: ERROR 1146 when using temp tables 2010-03-03 12:16:18 +00:00
binlog_truncate_innodb.result
binlog_truncate_myisam.result
binlog_unsafe.result BUG#49222: Mark RAND() as unsafe 2010-01-13 10:00:03 +01:00
binlog_write_error.result Backport Bug#37148 to 5.1 2010-01-24 15:03:23 +08:00