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
b23cb233
Commit
b23cb233
authored
Nov 29, 2006
by
msvensson@neptunus.(none)
Browse files
Options
Browse Files
Download
Plain Diff
Merge neptunus.(none):/home/msvensson/mysql/work/my41-work
into neptunus.(none):/home/msvensson/mysql/mysql-4.1-maint
parents
bb0d7ed4
5f4acf14
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
23 additions
and
2 deletions
+23
-2
mysql-test/mysql-test-run.pl
mysql-test/mysql-test-run.pl
+23
-2
No files found.
mysql-test/mysql-test-run.pl
View file @
b23cb233
...
@@ -1916,7 +1916,6 @@ sub kill_running_servers () {
...
@@ -1916,7 +1916,6 @@ sub kill_running_servers () {
}
}
}
}
#
#
# Remove var and any directories in var/ created by previous
# Remove var and any directories in var/ created by previous
# tests
# tests
...
@@ -1968,7 +1967,6 @@ sub remove_stale_vardir () {
...
@@ -1968,7 +1967,6 @@ sub remove_stale_vardir () {
mtr_error
("
The destination for symlink
$opt_vardir
does not exist
")
mtr_error
("
The destination for symlink
$opt_vardir
does not exist
")
if
!
-
d
readlink
(
$opt_vardir
);
if
!
-
d
readlink
(
$opt_vardir
);
my
$dir
=
shift
;
foreach
my
$bin
(
glob
("
$opt_vardir
/*
")
)
foreach
my
$bin
(
glob
("
$opt_vardir
/*
")
)
{
{
mtr_verbose
("
Removing bin
$bin
");
mtr_verbose
("
Removing bin
$bin
");
...
@@ -2030,6 +2028,19 @@ sub setup_vardir() {
...
@@ -2030,6 +2028,19 @@ sub setup_vardir() {
}
}
}
}
if
(
!
-
d
$opt_vardir
)
{
mtr_verbose
("
Creating
$opt_vardir
");
mkpath
(
$opt_vardir
);
}
# Ensure a proper error message if vardir couldn't be created
unless
(
-
d
$opt_vardir
and
-
w
$opt_vardir
)
{
mtr_error
("
Writable 'var' directory is needed, use the
"
.
"
'--vardir=<path>' option
");
}
mkpath
("
$opt_vardir
/log
");
mkpath
("
$opt_vardir
/log
");
mkpath
("
$opt_vardir
/run
");
mkpath
("
$opt_vardir
/run
");
mkpath
("
$opt_vardir
/tmp
");
mkpath
("
$opt_vardir
/tmp
");
...
@@ -3496,6 +3507,11 @@ sub mysqld_arguments ($$$$$) {
...
@@ -3496,6 +3507,11 @@ sub mysqld_arguments ($$$$$) {
# Force mysqld to use log files up until 5.1.6
# Force mysqld to use log files up until 5.1.6
mtr_add_arg
(
$args
,
"
%s--log=%s
",
$prefix
,
$master
->
[
0
]
->
{'
path_mylog
'});
mtr_add_arg
(
$args
,
"
%s--log=%s
",
$prefix
,
$master
->
[
0
]
->
{'
path_mylog
'});
}
}
else
{
# Turn on logging, will be sent to tables
mtr_add_arg
(
$args
,
"
%s--log=
",
$prefix
);
}
}
}
if
(
$type
eq
'
slave
'
)
if
(
$type
eq
'
slave
'
)
...
@@ -3579,6 +3595,11 @@ sub mysqld_arguments ($$$$$) {
...
@@ -3579,6 +3595,11 @@ sub mysqld_arguments ($$$$$) {
# Force mysqld to use log files up until 5.1.6
# Force mysqld to use log files up until 5.1.6
mtr_add_arg
(
$args
,
"
%s--log=%s
",
$prefix
,
$master
->
[
0
]
->
{'
path_mylog
'});
mtr_add_arg
(
$args
,
"
%s--log=%s
",
$prefix
,
$master
->
[
0
]
->
{'
path_mylog
'});
}
}
else
{
# Turn on logging, will be sent to tables
mtr_add_arg
(
$args
,
"
%s--log=
",
$prefix
);
}
}
# end slave
}
# end slave
...
...
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