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
2c566cad
Commit
2c566cad
authored
Jan 25, 2011
by
Bjorn Munch
Browse files
Options
Browse Files
Download
Plain Diff
merge 59063
parents
49b7a1f4
e95a3a8f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
2 deletions
+7
-2
mysql-test/mysql-test-run.pl
mysql-test/mysql-test-run.pl
+7
-2
No files found.
mysql-test/mysql-test-run.pl
View file @
2c566cad
...
...
@@ -4093,8 +4093,10 @@ sub check_expected_crash_and_restart {
{
mtr_verbose
("
Crash was expected, file '
$expect_file
' exists
");
for
(
my
$waits
=
0
;
$waits
<
50
;
$waits
++
)
for
(
my
$waits
=
0
;
$waits
<
50
;
mtr_milli_sleep
(
100
),
$waits
++
)
{
# Race condition seen on Windows: try again until file not empty
next
if
-
z
$expect_file
;
# If last line in expect file starts with "wait"
# sleep a little and try again, thus allowing the
# test script to control when the server should start
...
...
@@ -4103,10 +4105,11 @@ sub check_expected_crash_and_restart {
if
(
$last_line
=~
/^wait/
)
{
mtr_verbose
("
Test says wait before restart
")
if
$waits
==
0
;
mtr_milli_sleep
(
100
);
next
;
}
# Ignore any partial or unknown command
next
unless
$last_line
=~
/^restart/
;
# If last line begins "restart:", the rest of the line is read as
# extra command line options to add to the restarted mysqld.
# Anything other than 'wait' or 'restart:' (with a colon) will
...
...
@@ -4471,6 +4474,8 @@ sub mysqld_start ($$) {
my
@all_opts
=
@$extra_opts
;
if
(
exists
$mysqld
->
{'
restart_opts
'})
{
push
(
@all_opts
,
@
{
$mysqld
->
{'
restart_opts
'}});
mtr_verbose
(
My::Options::
toStr
("
mysqld_start restart
",
@
{
$mysqld
->
{'
restart_opts
'}}));
}
mysqld_arguments
(
$args
,
$mysqld
,
\
@all_opts
);
...
...
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