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
3320a4bf
Commit
3320a4bf
authored
Feb 06, 2012
by
Sergei Golubchik
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
per-combination result files
parent
9c8c572f
Changes
8
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
32 additions
and
100 deletions
+32
-100
mysql-test/extra/rpl_tests/rpl_insert_delayed.test
mysql-test/extra/rpl_tests/rpl_insert_delayed.test
+1
-3
mysql-test/lib/mtr_cases.pm
mysql-test/lib/mtr_cases.pm
+30
-14
mysql-test/suite/rpl/r/rpl_insert_delayed,stmt.result
mysql-test/suite/rpl/r/rpl_insert_delayed,stmt.result
+0
-3
mysql-test/suite/rpl/r/rpl_insert_delayed.result
mysql-test/suite/rpl/r/rpl_insert_delayed.result
+0
-3
mysql-test/suite/rpl/r/rpl_mix_insert_delayed.result
mysql-test/suite/rpl/r/rpl_mix_insert_delayed.result
+0
-59
mysql-test/suite/rpl/t/rpl_insert_delayed.test
mysql-test/suite/rpl/t/rpl_insert_delayed.test
+1
-2
mysql-test/suite/rpl/t/rpl_mix_insert_delayed.test
mysql-test/suite/rpl/t/rpl_mix_insert_delayed.test
+0
-6
mysql-test/suite/rpl/t/rpl_stm_insert_delayed.test
mysql-test/suite/rpl/t/rpl_stm_insert_delayed.test
+0
-10
No files found.
mysql-test/extra/rpl_tests/rpl_insert_delayed.test
View file @
3320a4bf
...
...
@@ -9,8 +9,6 @@ CREATE SCHEMA IF NOT EXISTS mysqlslap;
USE
mysqlslap
;
--
enable_warnings
select
@@
global
.
binlog_format
;
#
# BUG#25507 "multi-row insert delayed + auto increment causes
# duplicate key entries on slave";
...
...
@@ -145,7 +143,7 @@ select * from t1;
connection
master
;
drop
table
t1
;
sync_slave_with_master
;
if
(
`SELECT @@global.binlog_format
!= 'ROW
'`
)
if
(
`SELECT @@global.binlog_format
= 'STATEMENT
'`
)
{
#flush the logs after the test
FLUSH
LOGS
;
...
...
mysql-test/lib/mtr_cases.pm
View file @
3320a4bf
...
...
@@ -616,20 +616,6 @@ sub collect_one_test_case {
suite
=>
$suites
{
$suitename
},
);
my
$result_file
=
"
$resdir
/
$tname
.result
";
if
(
-
f
$result_file
)
{
# Allow nonexistsing result file
# in that case .test must issue "exit" otherwise test
# should fail by default
$tinfo
->
{
result_file
}
=
$result_file
;
}
else
{
# No .result file exist
# Remember the path where it should be
# saved in case of --record
$tinfo
->
{
record_file
}
=
$result_file
;
}
# ----------------------------------------------------------------------
# Skip some tests but include in list, just mark them as skipped
# ----------------------------------------------------------------------
...
...
@@ -871,6 +857,36 @@ sub collect_one_test_case {
{
@cases
=
map
make_combinations
(
$_
,
@
{
$comb
}),
@cases
;
}
for
$tinfo
(
@cases
)
{
if
(
$tinfo
->
{
combinations
})
{
my
$re
=
'
(?:
'
.
join
('
|
',
@
{
$tinfo
->
{
combinations
}})
.
'
)
';
my
$found
=
0
;
for
(
<
$resdir
/
$tname
,
*.
result
>
)
{
m|$tname((?:,$re)+)\.result$|
or
next
;
my
$combs
=
$&
;
my
@commas
=
(
$combs
=~
m/,/g
);
# prefer the most specific result file
if
(
@commas
>
$found
)
{
$found
=
@commas
;
$tinfo
->
{
result_file
}
=
$_
;
}
}
}
unless
(
defined
$tinfo
->
{
result_file
})
{
my
$result_file
=
"
$resdir
/
$tname
.result
";
if
(
-
f
$result_file
)
{
$tinfo
->
{
result_file
}
=
$result_file
;
}
else
{
# No .result file exist
# Remember the path where it should be
# saved in case of --record
$tinfo
->
{
record_file
}
=
$result_file
;
}
}
}
return
@cases
;
}
...
...
mysql-test/suite/rpl/r/rpl_
stm_insert_delayed
.result
→
mysql-test/suite/rpl/r/rpl_
insert_delayed,stmt
.result
View file @
3320a4bf
...
...
@@ -2,9 +2,6 @@ include/master-slave.inc
[connection master]
CREATE SCHEMA IF NOT EXISTS mysqlslap;
USE mysqlslap;
select @@global.binlog_format;
@@global.binlog_format
STATEMENT
CREATE TABLE t1 (id INT primary key auto_increment, name VARCHAR(64)) ENGINE=MyISAM;
FLUSH TABLE t1;
SELECT COUNT(*) FROM t1;
...
...
mysql-test/suite/rpl/r/rpl_
row_
insert_delayed.result
→
mysql-test/suite/rpl/r/rpl_insert_delayed.result
View file @
3320a4bf
...
...
@@ -2,9 +2,6 @@ include/master-slave.inc
[connection master]
CREATE SCHEMA IF NOT EXISTS mysqlslap;
USE mysqlslap;
select @@global.binlog_format;
@@global.binlog_format
ROW
CREATE TABLE t1 (id INT primary key auto_increment, name VARCHAR(64)) ENGINE=MyISAM;
FLUSH TABLE t1;
SELECT COUNT(*) FROM t1;
...
...
mysql-test/suite/rpl/r/rpl_mix_insert_delayed.result
deleted
100644 → 0
View file @
9c8c572f
include/master-slave.inc
[connection master]
CREATE SCHEMA IF NOT EXISTS mysqlslap;
USE mysqlslap;
select @@global.binlog_format;
@@global.binlog_format
MIXED
CREATE TABLE t1 (id INT primary key auto_increment, name VARCHAR(64)) ENGINE=MyISAM;
FLUSH TABLE t1;
SELECT COUNT(*) FROM t1;
COUNT(*)
5000
use mysqlslap;
SELECT COUNT(*) FROM t1;
COUNT(*)
5000
truncate table t1;
insert delayed into t1 values(10, "my name");
flush table t1;
insert delayed into t1 values(10, "is Bond"), (20, "James Bond");
flush table t1;
select * from t1;
id name
10 my name
20 James Bond
select * from t1;
id name
10 my name
20 James Bond
delete from t1 where id!=10;
insert delayed into t1 values(20, "is Bond"), (10, "James Bond");
flush table t1;
select * from t1;
id name
10 my name
20 is Bond
select * from t1;
id name
10 my name
20 is Bond
USE test;
DROP SCHEMA mysqlslap;
use test;
CREATE TABLE t1(a int, UNIQUE(a));
INSERT DELAYED IGNORE INTO t1 VALUES(1);
INSERT DELAYED IGNORE INTO t1 VALUES(1);
flush table t1;
select * from t1;
a
1
On slave
select * from t1;
a
1
drop table t1;
FLUSH LOGS;
FLUSH LOGS;
End of 5.0 tests
include/rpl_end.inc
mysql-test/suite/rpl/t/rpl_
row_
insert_delayed.test
→
mysql-test/suite/rpl/t/rpl_insert_delayed.test
View file @
3320a4bf
--
source
include
/
have_binlog_format_row
.
inc
--
source
include
/
master
-
slave
.
inc
--
source
include
/
not_embedded
.
inc
--
source
include
/
not_windows
.
inc
--
source
include
/
master
-
slave
.
inc
--
source
extra
/
rpl_tests
/
rpl_insert_delayed
.
test
--
source
include
/
rpl_end
.
inc
mysql-test/suite/rpl/t/rpl_mix_insert_delayed.test
deleted
100644 → 0
View file @
9c8c572f
--
source
include
/
have_binlog_format_mixed
.
inc
--
source
include
/
master
-
slave
.
inc
--
source
include
/
not_embedded
.
inc
--
source
include
/
not_windows
.
inc
--
source
extra
/
rpl_tests
/
rpl_insert_delayed
.
test
--
source
include
/
rpl_end
.
inc
mysql-test/suite/rpl/t/rpl_stm_insert_delayed.test
deleted
100644 → 0
View file @
9c8c572f
--
source
include
/
have_binlog_format_statement
.
inc
--
source
include
/
master
-
slave
.
inc
--
source
include
/
not_embedded
.
inc
--
source
include
/
not_windows
.
inc
disable_query_log
;
call
mtr
.
add_suppression
(
"Unsafe statement written to the binary log using statement format since BINLOG_FORMAT = STATEMENT"
);
enable_query_log
;
--
source
extra
/
rpl_tests
/
rpl_insert_delayed
.
test
--
source
include
/
rpl_end
.
inc
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