Bug #6883 | ROLLBACK wipes out some DDLs from the binlog (breaks binlog and replication) | ||
---|---|---|---|
Submitted: | 29 Nov 2004 20:57 | Modified: | 21 Jun 2005 16:50 |
Reporter: | Guilhem Bichot | Email Updates: | |
Status: | Closed | Impact on me: | |
Category: | MySQL Server | Severity: | S2 (Serious) |
Version: | 4.0 | OS: | Any (all) |
Assigned to: | Lars Thalmann | CPU Architecture: | Any |
[29 Nov 2004 20:57]
Guilhem Bichot
[29 Nov 2004 20:58]
Guilhem Bichot
please discuss with me before fixing - there are several issues.
[27 May 2005 16:43]
Bugs System
A patch for this bug has been committed. After review, it may be pushed to the relevant source trees for release in the next version. You can access the patch from: http://lists.mysql.com/internals/25301
[1 Jun 2005 13:53]
Bugs System
A patch for this bug has been committed. After review, it may be pushed to the relevant source trees for release in the next version. You can access the patch from: http://lists.mysql.com/internals/25454
[7 Jun 2005 9:48]
Bugs System
A patch for this bug has been committed. After review, it may be pushed to the relevant source trees for release in the next version. You can access the patch from: http://lists.mysql.com/internals/25682
[7 Jun 2005 14:44]
Bugs System
A patch for this bug has been committed. After review, it may be pushed to the relevant source trees for release in the next version. You can access the patch from: http://lists.mysql.com/internals/25712
[13 Jun 2005 10:40]
Lars Thalmann
From MySQL versions 4.1.13, 5.0.8, the following statements cause an implicit commit: - Non-temporary CREATE TABLE (needed to fix bug) - TRUNCATE TABLE (was not possible to execute at all with "open trx") - DROP DATABASE (was not possible to execute at all with "open trx") - CREATE DATABASE (just to make it consistent with all other DDL) Summary for MySQL 4.1 and MySQL 5.0 after made changes: MySQL 4.1 and 5.0 Implicit DDL commit ------------------------------------------------------ COMMIT commit ROLLBACK no commit SET AUTOCOMMIT=1 commit START TRANSACTION commit BEGIN commit DROP TABLE d1.t2 commit RENAME TABLE d1.t3 to d1.t20 commit ALTER TABLE d1.t4 ADD ... commit CREATE TABLE d1.t21 ... commit (changed code) TRUNCATE TABLE d1.t7 commit (changed code) LOCK TABLES d1.t1 commit DROP INDEX my_idx6 ON d1.t6 commit CREATE INDEX my_idx5 ON ... commit DROP DATABASE d2 commit (changed code) CREATE DATABASE commit (changed code) UNLOCK TABLES (with write lock) commit (was not documented) UNLOCK TABLES (with no write lock) no commit CREATE TEMPORARY TABLE no commit DROP TEMPORARY TABLE no commit
[21 Jun 2005 16:50]
Jon Stephens
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: Documented in change history for 4.1.13 and 5.0.8 releases; marked Closed.