mariadb/mysql-test/suite/binlog/r
Jon Olav Hauglid e9b8feef32 Bug#12346411 SQL/LOG.CC:6509: ASSERTION `PREPARED_XIDS > 0' FAILED
This assert could be triggered during two phase commit if binary
log was used as transaction coordinator log. The triggered assert
checks that the same number of transaction IDs are processed in
the prepare and commit phases.

The reason it was triggered, was that the transaction consisted
of an INSERT/UPDATE IGNORE that had an ignorable error. Since it
had an error, no row log events were made and therefore
prepared_xids was 0. However, since it was an IGNORE statement,
the statement started a read/write statement transaction, committed
it and completed successfully.

This patch fixes the problem by adjusting the assert to take
this possibility into account.

Test case added to binlog.binlog_innodb_row.test.
2011-05-12 14:56:00 +02:00
..
binlog_base64_flag.result Upmerge 11762407 (54999) with additions 2011-02-23 12:54:58 +01:00
binlog_bug23533.result BUG#12371924. Fxi test case 2011-04-25 23:49:56 +04:00
binlog_bug36391.result WL#5867, reorganize test cases of bugs suite 2011-04-14 00:18:08 +04:00
binlog_database.result Bug #11765416 (former 58381) 2011-03-15 11:49:14 +01: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_drop_if_exists.result Merged BUG#49978 from 5.1-bugteam to 5.5-bugteam. 2010-12-19 18:15:12 +01:00
binlog_format_switch_in_tmp_table.result Bug #45855 row events in binlog after switch from binlog_fmt=mix to stmt with open tmp tbl 2010-01-26 17:41:15 +08:00
binlog_grant.result WL#4738 streamline/simplify @@variable creation process 2009-12-22 10:35:56 +01:00
binlog_implicit_commit.result Bug #37221: SET AUTOCOMMIT=1 does not commit binary log 2009-09-23 13:20:48 +02:00
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#46166 2010-12-17 01:17:03 +00:00
binlog_innodb.result BUG#56343 binlog_cache_use status is bigger than expected 2010-10-06 09:34:49 +01:00
binlog_innodb_row.result Bug#12346411 SQL/LOG.CC:6509: ASSERTION `PREPARED_XIDS > 0' FAILED 2011-05-12 14:56:00 +02:00
binlog_killed.result BUG#50670: Slave stops with error code 1644 2010-04-28 14:47:49 +02:00
binlog_killed_simulate.result Manual merge from mysql-trunk-merge. 2010-01-19 19:36:14 +03:00
binlog_max_extension.result BUG#46166 2010-12-07 16:55:25 +00:00
binlog_mixed_cache_stat.result BUG#57275 binlog_cache_size affects trx- and stmt-cache and gets twice the expected memory 2010-11-05 17:42:37 +00:00
binlog_mixed_load_data.result Bug #34283 mysqlbinlog leaves tmpfile after termination if binlog contains load data infile 2010-08-03 10:22:19 +08:00
binlog_multi_engine.result BUG#53259 Unsafe statement binlogged in statement format w/MyIsam temp tables 2010-06-30 16:25:13 +01:00
binlog_old_versions.result BUG#49978: Replication tests don't clean up replication state at the end 2010-12-19 18:07:28 +01:00
binlog_query_filter_rules.result BUG#49978: Replication tests don't clean up replication state at the end 2010-12-19 18:07:28 +01:00
binlog_row_binlog.result Upmerge 11762407 (54999) with additions 2011-02-23 12:54:58 +01:00
binlog_row_cache_stat.result BUG#57275 binlog_cache_size affects trx- and stmt-cache and gets twice the expected memory 2010-11-05 17:42:37 +00:00
binlog_row_ctype_cp932.result Merge stella.local:/home2/mydev/mysql-5.1-amain 2008-03-26 10:27:00 +01:00
binlog_row_ctype_ucs.result Bug#41371 Select returns 1 row with condition "col is not null and col is null" 2009-11-03 17:54:41 +04:00
binlog_row_drop_tbl.result BUG#53452 Inconsistent behavior of binlog_direct_non_transactional_updates with 2010-08-20 03:59:58 +01:00
binlog_row_drop_tmp_tbl.result BUG#53452 Inconsistent behavior of binlog_direct_non_transactional_updates with 2010-08-20 03:59:58 +01:00
binlog_row_insert_select.result WL#2687 WL#5072 BUG#40278 BUG#47175 2009-11-03 19:02:56 +00:00
binlog_row_mix_innodb_myisam.result merge mysql-5.1-bugteam --> mysql-5.5-merge 2010-09-17 21:22:34 +01: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_server_id.result Merged BUG#49978 from 5.1-bugteam to 5.5-bugteam. 2010-12-19 18:15:12 +01:00
binlog_sf.result BUG#49978: Replication tests don't clean up replication state at the end 2010-12-19 18:07:28 +01:00
binlog_spurious_ddl_errors.result BUG#50479 DDL stmt on row-only/stmt-only tables generate spurious binlog_format 2010-06-02 00:25:08 +01:00
binlog_sql_mode.result BUG#49978: Replication tests don't clean up replication state at the end 2010-12-19 18:07:28 +01:00
binlog_start_comment.result Fix after merge 2008-02-28 18:55:46 +01:00
binlog_statement_insert_delayed.result Bug #57666 Unclear warning with broken text in error log on INSERT DELAYED 2010-11-29 11:04:16 +08:00
binlog_stm_binlog.result Upmerge 11762407 (54999) with additions 2011-02-23 12:54:58 +01:00
binlog_stm_blackhole.result BUG#53452 Inconsistent behavior of binlog_direct_non_transactional_updates with 2010-08-20 03:59:58 +01:00
binlog_stm_cache_stat.result BUG#57275 binlog_cache_size affects trx- and stmt-cache and gets twice the expected memory 2010-11-05 17:42:37 +00:00
binlog_stm_ctype_cp932.result Unset the execute bit where it's not needed. 2010-07-03 20:17:03 -03:00
binlog_stm_ctype_ucs.result merge mysql-5.1-rep+2-delivery1 --> mysql-5.1-rpl-merge 2010-01-07 15:39:11 +00:00
binlog_stm_do_db.result BUG#50670: Slave stops with error code 1644 2010-04-28 14:47:49 +02:00
binlog_stm_drop_tbl.result BUG#53452 Inconsistent behavior of binlog_direct_non_transactional_updates with 2010-08-20 03:59:58 +01:00
binlog_stm_drop_tmp_tbl.result BUG#53452 Inconsistent behavior of binlog_direct_non_transactional_updates with 2010-08-20 03:59:58 +01:00
binlog_stm_insert_select.result WL#2687 WL#5072 BUG#40278 BUG#47175 2009-11-03 19:02:56 +00:00
binlog_stm_mix_innodb_myisam.result Bug#11902767/Bug#60580: Statement improperly replicated crashes slave SQL thread 2011-05-12 05:56:41 +01:00
binlog_stm_ps.result BUG#50670: Slave stops with error code 1644 2010-04-28 14:47:49 +02:00
binlog_stm_row.result BUG#53452 Inconsistent behavior of binlog_direct_non_transactional_updates with 2010-08-20 03:59:58 +01:00
binlog_stm_unsafe_warning.result BUG#50312 Warnings for unsafe sub-statement not returned to client 2010-08-10 12:32:54 +01:00
binlog_stm_user_variables.result BUG#49562: SBR out of sync when using numeric data types + user 2010-01-19 23:16:22 +00:00
binlog_switch_inside_trans.result BUG#53437 @@session.sql_bin_log support in substatements is incorrect 2010-05-27 16:43:08 +01:00
binlog_tmp_table.result BUG#53101: binlog.binlog_tmp_table fails on sol10 sparc64 max in 2010-04-27 12:25:55 +01:00
binlog_truncate_innodb.result Bug#42643: InnoDB does not support replication of TRUNCATE TABLE 2010-05-25 17:01:38 -03:00
binlog_truncate_myisam.result Bug#42643: InnoDB does not support replication of TRUNCATE TABLE 2010-05-25 17:01:38 -03:00
binlog_unsafe.result merge 2010-12-23 13:39:58 +02:00
binlog_write_error.result Merge next-mr -> next-4284. 2010-02-04 23:15:47 +03:00