Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
MariaDB
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
MariaDB
Commits
2ae528aa
Commit
2ae528aa
authored
Jan 08, 2010
by
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Postfix
Recover the right contents of the index file at the end of the test case.
parent
8c677779
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
24 additions
and
3 deletions
+24
-3
mysql-test/suite/rpl/t/rpl_manual_change_index_file.test
mysql-test/suite/rpl/t/rpl_manual_change_index_file.test
+24
-3
No files found.
mysql-test/suite/rpl/t/rpl_manual_change_index_file.test
View file @
2ae528aa
...
...
@@ -25,7 +25,6 @@ sync_slave_with_master;
connection
master
;
# Delete './master-bin.000001' from index file.
let
$MYSQLD_DATADIR
=
`SELECT @@DATADIR`
;
#remove_file $MYSQLD_DATADIR/master-bin.index;
let
$file
=
$MYSQLD_DATADIR
/
master
-
bin
.
index
;
source
include
/
truncate_file
.
inc
;
...
...
@@ -45,8 +44,7 @@ EOF
sleep
0.00000001
;
}
# Now, only 1 entry in index file.
# ./master-bin.000002
# Now, only 1 entry in index file. ./master-bin.000002
# Generate master-bin.000003, but it is in the second line.
FLUSH
LOGS
;
...
...
@@ -66,6 +64,29 @@ echo Last_IO_Error;
echo
$last_error
;
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
);
FLUSH
LOGS
;
CREATE
TABLE
t3
(
c1
INT
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment