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
3b2cfef6
Commit
3b2cfef6
authored
Jan 08, 2008
by
msvensson@pilot.mysql.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use a tempdir name for the directory that var symlink points at, otherwise it can conflict
with another MTR_BUILD_THREAD=auto run
parent
ec673b8a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
13 deletions
+4
-13
mysql-test/mysql-test-run.pl
mysql-test/mysql-test-run.pl
+4
-13
No files found.
mysql-test/mysql-test-run.pl
View file @
3b2cfef6
...
...
@@ -539,7 +539,7 @@ sub command_line_setup {
if
$opt_tmpdir
;
# Search through list of locations that are known
# to be "fast disks" to
list to
find a suitable location
# to be "fast disks" to find a suitable location
# Use --mem=<dir> as first location to look.
my
@tmpfs_locations
=
(
$opt_mem
,
"
/dev/shm
",
"
/tmp
");
...
...
@@ -547,8 +547,8 @@ sub command_line_setup {
{
if
(
-
d
$fs
)
{
$opt_mem
=
"
$fs
/var
";
$opt_mem
.=
$opt_mtr_build_thread
if
$opt_mtr_build_thread
;
my
$template
=
"
var_
${opt_mtr_build_thread}
_XXXX
";
$opt_mem
=
tempdir
(
$template
,
DIR
=>
$fs
,
CLEANUP
=>
0
)
;
last
;
}
}
...
...
@@ -772,7 +772,6 @@ sub set_mtr_build_thread_ports($) {
mtr_require_unique_id_and_wait
("
/tmp/mysql-test-ports
",
200
,
299
);
print
"
got
"
.
$mtr_build_thread
.
"
\n
";
}
$opt_mtr_build_thread
=
$mtr_build_thread
;
$ENV
{
MTR_BUILD_THREAD
}
=
$mtr_build_thread
;
# Calculate baseport
...
...
@@ -1272,7 +1271,7 @@ sub remove_stale_vardir () {
{
# var is a symlink
if
(
$opt_mem
and
readlink
(
$opt_vardir
)
eq
$opt_mem
)
if
(
$opt_mem
)
{
# Remove the directory which the link points at
mtr_verbose
("
Removing
"
.
readlink
(
$opt_vardir
));
...
...
@@ -1282,14 +1281,6 @@ sub remove_stale_vardir () {
mtr_verbose
("
unlink(
$opt_vardir
)
");
unlink
(
$opt_vardir
);
}
elsif
(
$opt_mem
)
{
# Just remove the "var" symlink
mtr_report
("
- WARNING: Removing '
$opt_vardir
' symlink it's wrong
");
mtr_verbose
("
unlink(
$opt_vardir
)
");
unlink
(
$opt_vardir
);
}
else
{
# Some users creates a soft link in mysql-test/var to another area
...
...
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