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
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
mariadb
Commits
dcce4286
Commit
dcce4286
authored
Sep 15, 2011
by
Michael Widenius
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed race condition that could cause diff to fail.
(Code taken from 5.5)
parent
da223f14
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
18 deletions
+9
-18
mysql-test/extra/rpl_tests/rpl_row_func003.test
mysql-test/extra/rpl_tests/rpl_row_func003.test
+9
-18
No files found.
mysql-test/extra/rpl_tests/rpl_row_func003.test
View file @
dcce4286
...
@@ -47,17 +47,9 @@ delimiter ;|
...
@@ -47,17 +47,9 @@ delimiter ;|
--
disable_warnings
--
disable_warnings
INSERT
INTO
test
.
t1
VALUES
(
null
,
test
.
f1
()),(
null
,
test
.
f1
()),(
null
,
test
.
f1
());
INSERT
INTO
test
.
t1
VALUES
(
null
,
test
.
f1
()),(
null
,
test
.
f1
()),(
null
,
test
.
f1
());
sleep
6
;
INSERT
INTO
test
.
t1
VALUES
(
null
,
test
.
f1
()),(
null
,
test
.
f1
()),(
null
,
test
.
f1
());
INSERT
INTO
test
.
t1
VALUES
(
null
,
test
.
f1
()),(
null
,
test
.
f1
()),(
null
,
test
.
f1
());
sleep
6
;
--
enable_warnings
--
enable_warnings
#Select in this test are used for debugging
#select * from test.t1;
#connection slave;
#select * from test.t1;
connection
master
;
SET
AUTOCOMMIT
=
0
;
SET
AUTOCOMMIT
=
0
;
START
TRANSACTION
;
START
TRANSACTION
;
--
disable_warnings
--
disable_warnings
...
@@ -65,18 +57,14 @@ INSERT INTO test.t1 VALUES (null,test.f1());
...
@@ -65,18 +57,14 @@ INSERT INTO test.t1 VALUES (null,test.f1());
--
enable_warnings
--
enable_warnings
ROLLBACK
;
ROLLBACK
;
SET
AUTOCOMMIT
=
1
;
SET
AUTOCOMMIT
=
1
;
#select * from test.t1;
#sleep 6;
#connection slave;
#select * from test.t1;
#connection master;
#used for debugging
# Sync master and slave for all engines except NDB
#show binlog events;
if
(
`SELECT UPPER(LEFT('$engine_type', 3)) != 'NDB'`
)
{
sync_slave_with_master
;
connection
master
;
}
#
t
ime to dump the databases and so we can see if they match
#
T
ime to dump the databases and so we can see if they match
--
exec
$MYSQL_DUMP
--
compact
--
order
-
by
-
primary
--
skip
-
extended
-
insert
--
no
-
create
-
info
test
>
$MYSQLTEST_VARDIR
/
tmp
/
func003_master
.
sql
--
exec
$MYSQL_DUMP
--
compact
--
order
-
by
-
primary
--
skip
-
extended
-
insert
--
no
-
create
-
info
test
>
$MYSQLTEST_VARDIR
/
tmp
/
func003_master
.
sql
--
exec
$MYSQL_DUMP_SLAVE
--
compact
--
order
-
by
-
primary
--
skip
-
extended
-
insert
--
no
-
create
-
info
test
>
$MYSQLTEST_VARDIR
/
tmp
/
func003_slave
.
sql
--
exec
$MYSQL_DUMP_SLAVE
--
compact
--
order
-
by
-
primary
--
skip
-
extended
-
insert
--
no
-
create
-
info
test
>
$MYSQLTEST_VARDIR
/
tmp
/
func003_slave
.
sql
...
@@ -93,5 +81,8 @@ DROP TABLE test.t1;
...
@@ -93,5 +81,8 @@ DROP TABLE test.t1;
diff_files
$MYSQLTEST_VARDIR
/
tmp
/
func003_master
.
sql
$MYSQLTEST_VARDIR
/
tmp
/
func003_slave
.
sql
;
diff_files
$MYSQLTEST_VARDIR
/
tmp
/
func003_master
.
sql
$MYSQLTEST_VARDIR
/
tmp
/
func003_slave
.
sql
;
# Clean up
remove_file
$MYSQLTEST_VARDIR
/
tmp
/
func003_master
.
sql
;
remove_file
$MYSQLTEST_VARDIR
/
tmp
/
func003_slave
.
sql
;
# End of 5.0 test case
# End of 5.0 test case
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