Bug #4553 Multi-table DROP TABLE replicates improperly for nonexistent table
Submitted: 14 Jul 2004 23:50 Modified: 17 Jul 2004 19:14
Reporter: Dean Ellis
Status: Closed
Category:Server: Replication Severity:S2 (Serious)
Version:4.0.21 OS:
Assigned to: Guilhem Bichot Target Version:

[14 Jul 2004 23:50] Dean Ellis
Description:
Multi-table DROP TABLE statements which attempt to drop an existent and nonexistent table
are not replicated properly, halting the slave SQL thread.  The binary/relay logs show
error_code=0 for the statement though errno 1051 is reported.

How to repeat:
Replicate the following:

DROP TABLE IF EXISTS t1;
DROP TABLE IF EXISTS t2;
CREATE TABLE t1 ( a int );
DROP TABLE t1, t2;

Suggested fix:
n/a
[15 Jul 2004 2:18] Guilhem Bichot
I should fix the stored error code to be 1051.
[17 Jul 2004 19:14] Guilhem Bichot
Thank you for your bug report. This issue has been committed to our
source repository of that product and will be incorporated into the
next release.

If necessary, you can access the source repository and build the latest
available version, including the bugfix, yourself. More information 
about accessing the source trees is available at
    http://www.mysql.com/doc/en/Installing_source_tree.html

Additional info:

ChangeSet@1.1897.1.1, 2004-07-17 16:58:16+02:00, guilhem@mysql.com