| 1 |
include/master-slave.inc |
| 2 |
[connection master] |
| 3 |
# |
| 4 |
# Bug#50124 Rpl failure on DROP table with concurrent txn/non-txn |
| 5 |
# DML flow and SAVEPOINT |
| 6 |
# |
| 7 |
connection master; |
| 8 |
DROP TABLE IF EXISTS tt, nt; |
| 9 |
CREATE TABLE tt (i INT) ENGINE = InnoDB; |
| 10 |
CREATE TABLE nt (i INT) ENGINE = MyISAM; |
| 11 |
FLUSH LOGS; |
| 12 |
START TRANSACTION; |
| 13 |
INSERT INTO nt VALUES (1); |
| 14 |
SAVEPOINT insert_statement; |
| 15 |
INSERT INTO tt VALUES (1); |
| 16 |
connection master1; |
| 17 |
# Sending: |
| 18 |
DROP TABLE tt; |
| 19 |
connection master; |
| 20 |
ROLLBACK TO SAVEPOINT insert_statement; |
| 21 |
Warnings: |
| 22 |
Warning 1196 Some non-transactional changed tables couldn't be rolled back |
| 23 |
COMMIT; |
| 24 |
connection master1; |
| 25 |
# Reaping: DROP TABLE tt |
| 26 |
FLUSH LOGS; |
| 27 |
connection master; |
| 28 |
DROP TABLE nt; |
| 29 |
include/rpl_end.inc |