Commit 2ae528aa authored by 's avatar

Postfix

Recover the right contents of the index file at the end of the test case.
parent 8c677779
...@@ -25,7 +25,6 @@ sync_slave_with_master; ...@@ -25,7 +25,6 @@ sync_slave_with_master;
connection master; connection master;
# Delete './master-bin.000001' from index file. # Delete './master-bin.000001' from index file.
let $MYSQLD_DATADIR= `SELECT @@DATADIR`; let $MYSQLD_DATADIR= `SELECT @@DATADIR`;
#remove_file $MYSQLD_DATADIR/master-bin.index;
let $file= $MYSQLD_DATADIR/master-bin.index; let $file= $MYSQLD_DATADIR/master-bin.index;
source include/truncate_file.inc; source include/truncate_file.inc;
...@@ -45,8 +44,7 @@ EOF ...@@ -45,8 +44,7 @@ EOF
sleep 0.00000001; sleep 0.00000001;
} }
# Now, only 1 entry in index file. # Now, only 1 entry in index file. ./master-bin.000002
# ./master-bin.000002
# Generate master-bin.000003, but it is in the second line. # Generate master-bin.000003, but it is in the second line.
FLUSH LOGS; FLUSH LOGS;
...@@ -66,6 +64,29 @@ echo Last_IO_Error; ...@@ -66,6 +64,29 @@ echo Last_IO_Error;
echo $last_error; echo $last_error;
connection master; connection master;
source include/truncate_file.inc;
if (`SELECT CONVERT(@@VERSION_COMPILE_OS USING latin1) NOT IN ('Win32', 'Win64', 'Windows')`)
{
append_file $MYSQLD_DATADIR/master-bin.index;
./master-bin.000001
./master-bin.000002
./master-bin.000003
EOF
sleep 0.00000001;
}
if (`SELECT CONVERT(@@VERSION_COMPILE_OS USING latin1) IN ('Win32', 'Win64', 'Windows')`)
{
append_file $MYSQLD_DATADIR/master-bin.index;
.\master-bin.000001
.\master-bin.000002
.\master-bin.000003
EOF
sleep 0.00000001;
}
CREATE TABLE t2(c1 INT); CREATE TABLE t2(c1 INT);
FLUSH LOGS; FLUSH LOGS;
CREATE TABLE t3(c1 INT); CREATE TABLE t3(c1 INT);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment