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
9a506df0
Commit
9a506df0
authored
Oct 14, 2006
by
unknown
Browse files
Options
Browse Files
Download
Plain Diff
Merge bk-internal:/home/bk/mysql-4.1-maint
into shellback.(none):/home/msvensson/mysql/mysql-4.1-maint
parents
e767ab6d
ad4d8130
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
42 additions
and
20 deletions
+42
-20
client/mysqltest.c
client/mysqltest.c
+19
-9
mysql-test/lib/mtr_report.pl
mysql-test/lib/mtr_report.pl
+1
-0
mysql-test/mysql-test-run.pl
mysql-test/mysql-test-run.pl
+21
-11
mysql-test/t/rpl_empty_master_crash-master.opt
mysql-test/t/rpl_empty_master_crash-master.opt
+1
-0
No files found.
client/mysqltest.c
View file @
9a506df0
...
@@ -1810,7 +1810,7 @@ void my_ungetc(int c)
...
@@ -1810,7 +1810,7 @@ void my_ungetc(int c)
void
read_until_delimiter
(
DYNAMIC_STRING
*
ds
,
void
read_until_delimiter
(
DYNAMIC_STRING
*
ds
,
DYNAMIC_STRING
*
ds_delimiter
)
DYNAMIC_STRING
*
ds_delimiter
)
{
{
int
c
;
char
c
;
DBUG_ENTER
(
"read_until_delimiter"
);
DBUG_ENTER
(
"read_until_delimiter"
);
DBUG_PRINT
(
"enter"
,
(
"delimiter: %s, length: %d"
,
DBUG_PRINT
(
"enter"
,
(
"delimiter: %s, length: %d"
,
ds_delimiter
->
str
,
ds_delimiter
->
length
));
ds_delimiter
->
str
,
ds_delimiter
->
length
));
...
@@ -3346,7 +3346,7 @@ int read_line(char *buf, int size)
...
@@ -3346,7 +3346,7 @@ int read_line(char *buf, int size)
LINT_INIT
(
last_quote
);
LINT_INIT
(
last_quote
);
start_lineno
=
cur_file
->
lineno
;
start_lineno
=
cur_file
->
lineno
;
DBUG_PRINT
(
"info"
,
(
"
start_
lineno: %d"
,
start_lineno
));
DBUG_PRINT
(
"info"
,
(
"
Starting to read at
lineno: %d"
,
start_lineno
));
for
(;
p
<
buf_end
;)
for
(;
p
<
buf_end
;)
{
{
skip_char
=
0
;
skip_char
=
0
;
...
@@ -3370,7 +3370,7 @@ int read_line(char *buf, int size)
...
@@ -3370,7 +3370,7 @@ int read_line(char *buf, int size)
die
(
"Missing end of block"
);
die
(
"Missing end of block"
);
*
p
=
0
;
*
p
=
0
;
DBUG_PRINT
(
"info"
,
(
"end of file
"
));
DBUG_PRINT
(
"info"
,
(
"end of file
at line %d"
,
cur_file
->
lineno
));
DBUG_RETURN
(
1
);
DBUG_RETURN
(
1
);
}
}
cur_file
--
;
cur_file
--
;
...
@@ -3393,7 +3393,8 @@ int read_line(char *buf, int size)
...
@@ -3393,7 +3393,8 @@ int read_line(char *buf, int size)
if
(
end_of_query
(
c
))
if
(
end_of_query
(
c
))
{
{
*
p
=
0
;
*
p
=
0
;
DBUG_PRINT
(
"exit"
,
(
"Found delimiter '%s'"
,
delimiter
));
DBUG_PRINT
(
"exit"
,
(
"Found delimiter '%s' at line %d"
,
delimiter
,
cur_file
->
lineno
));
DBUG_RETURN
(
0
);
DBUG_RETURN
(
0
);
}
}
else
if
((
c
==
'{'
&&
else
if
((
c
==
'{'
&&
...
@@ -3405,7 +3406,8 @@ int read_line(char *buf, int size)
...
@@ -3405,7 +3406,8 @@ int read_line(char *buf, int size)
/* Only if and while commands can be terminated by { */
/* Only if and while commands can be terminated by { */
*
p
++=
c
;
*
p
++=
c
;
*
p
=
0
;
*
p
=
0
;
DBUG_PRINT
(
"exit"
,
(
"Found '{' indicating begining of block"
));
DBUG_PRINT
(
"exit"
,
(
"Found '{' indicating start of block at line %d"
,
cur_file
->
lineno
));
DBUG_RETURN
(
0
);
DBUG_RETURN
(
0
);
}
}
else
if
(
c
==
'\''
||
c
==
'"'
||
c
==
'`'
)
else
if
(
c
==
'\''
||
c
==
'"'
||
c
==
'`'
)
...
@@ -3420,7 +3422,8 @@ int read_line(char *buf, int size)
...
@@ -3420,7 +3422,8 @@ int read_line(char *buf, int size)
{
{
/* Comments are terminated by newline */
/* Comments are terminated by newline */
*
p
=
0
;
*
p
=
0
;
DBUG_PRINT
(
"exit"
,
(
"Found newline in comment"
));
DBUG_PRINT
(
"exit"
,
(
"Found newline in comment at line: %d"
,
cur_file
->
lineno
));
DBUG_RETURN
(
0
);
DBUG_RETURN
(
0
);
}
}
break
;
break
;
...
@@ -3435,13 +3438,19 @@ int read_line(char *buf, int size)
...
@@ -3435,13 +3438,19 @@ int read_line(char *buf, int size)
{
{
/* Skip all space at begining of line */
/* Skip all space at begining of line */
if
(
c
==
'\n'
)
if
(
c
==
'\n'
)
start_lineno
=
cur_file
->
lineno
;
/* Query hasn't started yet */
{
/* Query hasn't started yet */
start_lineno
=
cur_file
->
lineno
;
DBUG_PRINT
(
"info"
,
(
"Query hasn't started yet, start_lineno: %d"
,
start_lineno
));
}
skip_char
=
1
;
skip_char
=
1
;
}
}
else
if
(
end_of_query
(
c
))
else
if
(
end_of_query
(
c
))
{
{
*
p
=
0
;
*
p
=
0
;
DBUG_PRINT
(
"exit"
,
(
"Found delimiter '%s'"
,
delimiter
));
DBUG_PRINT
(
"exit"
,
(
"Found delimiter '%s' at line: %d"
,
delimiter
,
cur_file
->
lineno
));
DBUG_RETURN
(
0
);
DBUG_RETURN
(
0
);
}
}
else
if
(
c
==
'}'
)
else
if
(
c
==
'}'
)
...
@@ -3449,7 +3458,8 @@ int read_line(char *buf, int size)
...
@@ -3449,7 +3458,8 @@ int read_line(char *buf, int size)
/* A "}" need to be by itself in the begining of a line to terminate */
/* A "}" need to be by itself in the begining of a line to terminate */
*
p
++=
c
;
*
p
++=
c
;
*
p
=
0
;
*
p
=
0
;
DBUG_PRINT
(
"exit"
,
(
"Found '}' in begining of a line"
));
DBUG_PRINT
(
"exit"
,
(
"Found '}' in begining of a line at line: %d"
,
cur_file
->
lineno
));
DBUG_RETURN
(
0
);
DBUG_RETURN
(
0
);
}
}
else
if
(
c
==
'\''
||
c
==
'"'
||
c
==
'`'
)
else
if
(
c
==
'\''
||
c
==
'"'
||
c
==
'`'
)
...
...
mysql-test/lib/mtr_report.pl
View file @
9a506df0
...
@@ -133,6 +133,7 @@ sub mtr_report_test_failed ($) {
...
@@ -133,6 +133,7 @@ sub mtr_report_test_failed ($) {
if
(
$tinfo
->
{'
timeout
'}
)
if
(
$tinfo
->
{'
timeout
'}
)
{
{
print
"
[ fail ] timeout
\n
";
print
"
[ fail ] timeout
\n
";
return
;
}
}
elsif
(
$tinfo
->
{'
ndb_test
'}
and
$::cluster
->
[
0
]
->
{'
installed_ok
'}
eq
"
NO
")
elsif
(
$tinfo
->
{'
ndb_test
'}
and
$::cluster
->
[
0
]
->
{'
installed_ok
'}
eq
"
NO
")
{
{
...
...
mysql-test/mysql-test-run.pl
View file @
9a506df0
...
@@ -468,11 +468,11 @@ sub initial_setup () {
...
@@ -468,11 +468,11 @@ sub initial_setup () {
#
#
# Look for the path where to find the client binaries
# Look for the path where to find the client binaries
$path_client_bindir
=
mtr_path_exists
("
$glob_basedir
/client/release
",
$path_client_bindir
=
mtr_path_exists
("
$glob_basedir
/client_release
",
"
$glob_basedir
/client_debug
",
"
$glob_basedir
/client/release
",
"
$glob_basedir
/client/debug
",
"
$glob_basedir
/client/debug
",
"
$glob_basedir
/client
",
"
$glob_basedir
/client
",
"
$glob_basedir
/client_release
",
"
$glob_basedir
/client_debug
",
"
$glob_basedir
/bin
");
"
$glob_basedir
/bin
");
# Look for the mysqld executable
# Look for the mysqld executable
...
@@ -484,6 +484,7 @@ sub initial_setup () {
...
@@ -484,6 +484,7 @@ sub initial_setup () {
"
$path_client_bindir
/mysqld-debug
",
"
$path_client_bindir
/mysqld-debug
",
"
$path_client_bindir
/mysqld-max
",
"
$path_client_bindir
/mysqld-max
",
"
$glob_basedir
/libexec/mysqld
",
"
$glob_basedir
/libexec/mysqld
",
"
$glob_basedir
/bin/mysqld
",
"
$glob_basedir
/sql/release/mysqld
",
"
$glob_basedir
/sql/release/mysqld
",
"
$glob_basedir
/sql/debug/mysqld
");
"
$glob_basedir
/sql/debug/mysqld
");
...
@@ -1416,18 +1417,27 @@ sub executable_setup () {
...
@@ -1416,18 +1417,27 @@ sub executable_setup () {
}
}
# Look for mysql_client_test executable
if
(
$glob_win32
and
$mysql_version_id
<
50000
)
if
(
$glob_use_embedded_server
)
{
{
$exe_mysql_client_test
=
# Skip looking for exe_mysql_client_test as its not built by default
mtr_exe_exists
("
$glob_basedir
/libmysqld/examples/mysql_client_test_embedded
");
# in 4.1 for windows.
$exe_mysql_client_test
=
"
unavailable
";
}
}
else
else
{
{
$exe_mysql_client_test
=
# Look for mysql_client_test executable
mtr_exe_exists
("
$glob_basedir
/tests/mysql_client_test
",
if
(
$glob_use_embedded_server
)
"
$glob_basedir
/tests/release/mysql_client_test
",
{
"
$glob_basedir
/tests/debug/mysql_client_test
");
$exe_mysql_client_test
=
mtr_exe_exists
("
$glob_basedir
/libmysqld/examples/mysql_client_test_embedded
");
}
else
{
$exe_mysql_client_test
=
mtr_exe_exists
("
$glob_basedir
/tests/mysql_client_test
",
"
$glob_basedir
/tests/release/mysql_client_test
",
"
$glob_basedir
/tests/debug/mysql_client_test
");
}
}
}
}
}
...
...
mysql-test/t/rpl_empty_master_crash-master.opt
0 → 100644
View file @
9a506df0
--force-restart
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