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
3ce7e9fc
Commit
3ce7e9fc
authored
Jul 06, 2006
by
guilhem@gbichot3.local
Browse files
Options
Browse Files
Download
Plain Diff
Merge gbichot3.local:/home/mysql_src/mysql-5.1
into gbichot3.local:/home/mysql_src/mysql-5.1-new-WL3146-handler
parents
a5f184d5
fd520be8
Changes
7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
66 additions
and
27 deletions
+66
-27
mysql-test/lib/mtr_cases.pl
mysql-test/lib/mtr_cases.pl
+38
-23
mysql-test/lib/mtr_report.pl
mysql-test/lib/mtr_report.pl
+18
-0
mysql-test/mysql-test-run.pl
mysql-test/mysql-test-run.pl
+4
-2
mysql-test/r/rpl_row_create_table.result
mysql-test/r/rpl_row_create_table.result
+1
-0
mysql-test/t/rpl_row_create_table.test
mysql-test/t/rpl_row_create_table.test
+1
-0
sql/sql_class.h
sql/sql_class.h
+2
-1
sql/sql_insert.cc
sql/sql_insert.cc
+2
-1
No files found.
mysql-test/lib/mtr_cases.pl
View file @
3ce7e9fc
...
...
@@ -37,6 +37,23 @@ sub collect_test_cases ($) {
opendir
(
TESTDIR
,
$testdir
)
or
mtr_error
("
Can't open dir
\"
$testdir
\"
: $!
");
# ----------------------------------------------------------------------
# Disable some tests listed in disabled.def
# ----------------------------------------------------------------------
my
%
disabled
;
if
(
open
(
DISABLED
,
"
$testdir
/disabled.def
"
)
)
{
while
(
<
DISABLED
>
)
{
chomp
;
if
(
/^\s*(\S+)\s*:\s*(.*?)\s*$/
)
{
$disabled
{
$1
}
=
$2
;
}
}
close
DISABLED
;
}
if
(
@::opt_cases
)
{
foreach
my
$tname
(
@::opt_cases
)
{
# Run in specified order, no sort
...
...
@@ -100,30 +117,13 @@ sub collect_test_cases ($) {
}
}
collect_one_test_case
(
$testdir
,
$resdir
,
$tname
,
$elem
,
$cases
,
{}
,
collect_one_test_case
(
$testdir
,
$resdir
,
$tname
,
$elem
,
$cases
,
\%
disabled
,
$component_id
);
}
closedir
TESTDIR
;
}
else
{
# ----------------------------------------------------------------------
# Disable some tests listed in disabled.def
# ----------------------------------------------------------------------
my
%
disabled
;
if
(
!
$::opt_ignore_disabled_def
and
open
(
DISABLED
,
"
$testdir
/disabled.def
"
)
)
{
while
(
<
DISABLED
>
)
{
chomp
;
if
(
/^\s*(\S+)\s*:\s*(.*?)\s*$/
)
{
$disabled
{
$1
}
=
$2
;
}
}
close
DISABLED
;
}
foreach
my
$elem
(
sort
readdir
(
TESTDIR
)
)
{
my
$component_id
=
undef
;
my
$tname
=
undef
;
...
...
@@ -414,20 +414,35 @@ sub collect_one_test_case($$$$$$$) {
}
# FIXME why this late?
my
$marked_as_disabled
=
0
;
if
(
$disabled
->
{
$tname
}
)
{
$tinfo
->
{'
skip
'}
=
1
;
$tinfo
->
{'
disable
'}
=
1
;
# Sub type of 'skip'
$tinfo
->
{'
comment
'}
=
$disabled
->
{
$tname
}
if
$disabled
->
{
$tname
};
$marked_as_disabled
=
1
;
$tinfo
->
{'
comment
'}
=
$disabled
->
{
$tname
};
}
if
(
-
f
$disabled_file
)
{
$tinfo
->
{'
skip
'}
=
1
;
$tinfo
->
{'
disable
'}
=
1
;
# Sub type of 'skip'
$marked_as_disabled
=
1
;
$tinfo
->
{'
comment
'}
=
mtr_fromfile
(
$disabled_file
);
}
# If test was marked as disabled, either opt_enable_disabled is off and then
# we skip this test, or it is on and then we run this test but warn
if
(
$marked_as_disabled
)
{
if
(
$::opt_enable_disabled
)
{
$tinfo
->
{'
dont_skip_though_disabled
'}
=
1
;
}
else
{
$tinfo
->
{'
skip
'}
=
1
;
$tinfo
->
{'
disable
'}
=
1
;
# Sub type of 'skip'
}
}
if
(
$component_id
eq
'
im
'
)
{
if
(
$::glob_use_embedded_server
)
...
...
mysql-test/lib/mtr_report.pl
View file @
3ce7e9fc
...
...
@@ -10,6 +10,7 @@ sub mtr_report_test_name($);
sub
mtr_report_test_passed
($);
sub
mtr_report_test_failed
($);
sub
mtr_report_test_skipped
($);
sub
mtr_report_test_not_skipped_though_disabled
($);
sub
mtr_show_failed_diff
($);
sub
mtr_report_stats
($);
...
...
@@ -100,6 +101,23 @@ sub mtr_report_test_skipped ($) {
}
}
sub
mtr_report_tests_not_skipped_though_disabled
($)
{
my
$tests
=
shift
;
if
(
$::opt_enable_disabled
)
{
my
@disabled_tests
=
grep
{
$_
->
{'
dont_skip_though_disabled
'}}
@$tests
;
if
(
@disabled_tests
)
{
print
"
\n
Test(s) which will be run though they are marked as disabled:
\n
";
foreach
my
$tinfo
(
sort
{
$a
->
{'
name
'}
cmp
$b
->
{'
name
'}}
@disabled_tests
)
{
printf
"
%-20s : %s
\n
",
$tinfo
->
{'
name
'},
$tinfo
->
{'
comment
'};
}
}
}
}
sub
mtr_report_test_passed
($)
{
my
$tinfo
=
shift
;
...
...
mysql-test/mysql-test-run.pl
View file @
3ce7e9fc
...
...
@@ -216,6 +216,7 @@ our $opt_extern;
our
$opt_fast
;
our
$opt_force
;
our
$opt_reorder
;
our
$opt_enable_disabled
;
our
$opt_gcov
;
our
$opt_gcov_err
;
...
...
@@ -660,6 +661,7 @@ sub command_line_setup () {
'
netware
'
=>
\
$opt_netware
,
'
old-master
'
=>
\
$opt_old_master
,
'
reorder
'
=>
\
$opt_reorder
,
'
enable-disabled
'
=>
\
$opt_enable_disabled
,
'
script-debug
'
=>
\
$opt_script_debug
,
'
sleep=i
'
=>
\
$opt_sleep
,
'
socket=s
'
=>
\
$opt_socket
,
...
...
@@ -1794,12 +1796,12 @@ sub run_suite () {
mtr_print_thick_line
();
mtr_report
("
Finding Tests in the '
$suite
' suite
");
mtr_timer_start
(
$glob_timers
,"
suite
",
60
*
$opt_suite_timeout
);
mtr_report
("
Starting Tests in the '
$suite
' suite
");
mtr_report_tests_not_skipped_though_disabled
(
$tests
);
mtr_print_header
();
foreach
my
$tinfo
(
@$tests
)
...
...
mysql-test/r/rpl_row_create_table.result
View file @
3ce7e9fc
...
...
@@ -178,6 +178,7 @@ CREATE TABLE t8 LIKE t4;
CREATE TABLE t9 LIKE tt4;
CREATE TEMPORARY TABLE tt5 LIKE t4;
CREATE TEMPORARY TABLE tt6 LIKE tt4;
CREATE TEMPORARY TABLE tt7 SELECT 1;
**** On Master ****
SHOW CREATE TABLE t8;
Table t8
...
...
mysql-test/t/rpl_row_create_table.test
View file @
3ce7e9fc
...
...
@@ -97,6 +97,7 @@ CREATE TABLE t8 LIKE t4;
CREATE
TABLE
t9
LIKE
tt4
;
CREATE
TEMPORARY
TABLE
tt5
LIKE
t4
;
CREATE
TEMPORARY
TABLE
tt6
LIKE
tt4
;
CREATE
TEMPORARY
TABLE
tt7
SELECT
1
;
--
echo
****
On
Master
****
--
query_vertical
SHOW
CREATE
TABLE
t8
--
query_vertical
SHOW
CREATE
TABLE
t9
...
...
sql/sql_class.h
View file @
3ce7e9fc
...
...
@@ -1637,7 +1637,8 @@ class select_create: public select_insert {
virtual
bool
can_rollback_data
()
{
return
1
;
}
// Needed for access from local class MY_HOOKS in prepare(), since thd is proteted.
THD
*
get_thd
(
void
)
{
return
thd
;
}
const
THD
*
get_thd
(
void
)
{
return
thd
;
}
const
HA_CREATE_INFO
*
get_create_info
()
{
return
create_info
;
};
};
#include <myisam.h>
...
...
sql/sql_insert.cc
View file @
3ce7e9fc
...
...
@@ -2732,7 +2732,8 @@ class MY_HOOKS : public TABLEOP_HOOKS
MY_HOOKS
(
select_create
*
x
)
:
ptr
(
x
)
{
}
virtual
void
do_prelock
(
TABLE
**
tables
,
uint
count
)
{
if
(
ptr
->
get_thd
()
->
current_stmt_binlog_row_based
)
if
(
ptr
->
get_thd
()
->
current_stmt_binlog_row_based
&&
!
(
ptr
->
get_create_info
()
->
options
&
HA_LEX_CREATE_TMP_TABLE
))
ptr
->
binlog_show_create_table
(
tables
,
count
);
}
...
...
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