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
acf75687
Commit
acf75687
authored
Nov 28, 2006
by
msvensson@neptunus.(none)
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Some more checks to avoid removing unwanted directories.
parent
bccf1442
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
6 deletions
+20
-6
mysql-test/mysql-test-run.pl
mysql-test/mysql-test-run.pl
+20
-6
No files found.
mysql-test/mysql-test-run.pl
View file @
acf75687
...
...
@@ -1974,14 +1974,28 @@ sub remove_stale_vardir () {
sub
setup_vardir
()
{
mtr_report
("
Creating Directories
");
if
(
$opt_
mem
)
if
(
$opt_
vardir
eq
$default_vardir
)
{
# Runinng with var as a link to some "memory" location, normally tmpfs
mtr_verbose
("
Creating
$opt_mem
");
mkpath
(
$opt_mem
);
#
# Running with "var" in mysql-test dir
#
if
(
-
l
$opt_vardir
)
{
# it's a symlink
mtr_report
("
Symlinking 'var' to '
$opt_mem
'
");
symlink
(
$opt_mem
,
$opt_vardir
);
# Make sure the directory where it points exist
mtr_error
("
The destination for symlink
$opt_vardir
does not exist
")
if
!
-
d
readlink
(
$opt_vardir
);
}
elsif
(
$opt_mem
)
{
# Runinng with "var" as a link to some "memory" location, normally tmpfs
mtr_verbose
("
Creating
$opt_mem
");
mkpath
(
$opt_mem
);
mtr_report
("
Symlinking 'var' to '
$opt_mem
'
");
symlink
(
$opt_mem
,
$opt_vardir
);
}
}
mkpath
("
$opt_vardir
/log
");
...
...
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