5.1.46 after-merge fixes: must FLUSH TABLES before copying .frm.

This commit is contained in:
unknown 2010-05-02 08:47:28 +02:00
parent 79405cca92
commit be7c84c7e7
2 changed files with 2 additions and 0 deletions

View file

@ -2379,6 +2379,7 @@ DROP TABLE t1;
CREATE TABLE t1(a INT, b BIT(1));
INSERT INTO t1 VALUES(1, 0), (2, 1);
CREATE TABLE t2 SELECT * FROM t1;
FLUSH TABLES;
CHECKSUM TABLE t1 EXTENDED;
Table Checksum
test.t1 3775188275

View file

@ -1641,6 +1641,7 @@ DROP TABLE t1;
CREATE TABLE t1(a INT, b BIT(1));
INSERT INTO t1 VALUES(1, 0), (2, 1);
CREATE TABLE t2 SELECT * FROM t1;
FLUSH TABLES;
--copy_file $MYSQLD_DATADIR/test/t1.frm $MYSQLD_DATADIR/test/t3.frm
--copy_file $MYSQLD_DATADIR/test/t1.MYD $MYSQLD_DATADIR/test/t3.MYD
--copy_file $MYSQLD_DATADIR/test/t1.MYI $MYSQLD_DATADIR/test/t3.MYI