mariadb/mysql-test/extra/binlog_tests
Jon Olav Hauglid f94e7288e3 Bug #11765416 (former 58381)
FAILED DROP DATABASE CAN BREAK STATEMENT BASED REPLICATION

The first phase of DROP DATABASE is to delete the tables in the database.
If deletion of one or more of the tables fail (e.g. due to a FOREIGN KEY
constraint), DROP DATABASE will be aborted. However, some tables could
still have been deleted. The problem was that nothing would be written
to the binary log in this case, so any slaves would not delete these tables.
Therefore the master and the slaves would get out of sync.

This patch fixes the problem by making sure that DROP TABLE is written
to the binary log for the tables that were in fact deleted by the failed
DROP DATABASE statement.

Test case added to binlog.binlog_database.test.
2011-03-15 11:49:14 +01:00
..
binlog.test Upmerge 11762407 (54999) with additions 2011-02-23 12:54:58 +01:00
binlog_cache_stat.test 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_insert_delayed.test Bug #57666 Unclear warning with broken text in error log on INSERT DELAYED 2010-11-29 11:04:16 +08:00
binlog_truncate.test Tests: many if/while expresissons simplified after 57276 2010-11-17 11:16:13 +01:00
blackhole.test Tests: many if/while expresissons simplified after 57276 2010-11-17 11:16:13 +01:00
ctype_cp932.test Merge dl145h.mysql.com:/data0/mkindahl/mysql-5.0-rpl 2008-02-20 19:49:26 +01:00
ctype_cp932_binlog.test Merge pilot.(none):/data/msvensson/mysql/bug28369/my50-bug28369 2007-06-07 19:19:29 +02:00
ctype_ucs_binlog.test WL#4189 2007-12-12 18:19:24 +01:00
database.test Bug #11765416 (former 58381) 2011-03-15 11:49:14 +01:00
drop_table.test Backport of revno ## 2617.31.1, 2617.31.3, 2617.31.4, 2617.31.5, 2009-12-05 02:02:48 +03:00
drop_temp_table.test BUG#54842: DROP TEMPORARY TABLE not binlogged after manual 2010-06-29 11:54:58 +01:00
implicit.test upmerge and adapt follow-up to 55582 2010-10-21 09:37:10 +02:00
insert_select-binlog.test Merge bk-internal:/home/bk/mysql-5.1-new-maint 2007-06-07 15:21:52 -07:00
mix_innodb_myisam_binlog.test Tests: many if/while expresissons simplified after 57276 2010-11-17 11:16:13 +01:00
mix_innodb_myisam_side_effects.test BUG#53452 Inconsistent behavior of binlog_direct_non_transactional_updates with 2010-08-20 03:59:58 +01:00