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
a579d62e
Commit
a579d62e
authored
Sep 15, 2008
by
Magnus Svensson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
WL#4189 Create a tempdir if tmpdir path becomes too long
parent
af23ec85
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
1 deletion
+14
-1
mysql-test/mysql-test-run.pl
mysql-test/mysql-test-run.pl
+14
-1
No files found.
mysql-test/mysql-test-run.pl
View file @
a579d62e
...
@@ -1024,7 +1024,20 @@ sub command_line_setup {
...
@@ -1024,7 +1024,20 @@ sub command_line_setup {
# --------------------------------------------------------------------------
# --------------------------------------------------------------------------
# Set the "tmp" directory
# Set the "tmp" directory
# --------------------------------------------------------------------------
# --------------------------------------------------------------------------
if
(
!
$opt_tmpdir
)
{
$opt_tmpdir
=
"
$opt_vardir
/tmp
"
unless
$opt_tmpdir
;
$opt_tmpdir
=
"
$opt_vardir
/tmp
"
unless
$opt_tmpdir
;
if
(
check_socket_path_length
("
$opt_tmpdir
/testsocket.sock
"))
{
mtr_report
("
Too long tmpdir path '
$opt_tmpdir
'
",
"
creating a shorter one...
");
# Create temporary directory in standard location for temporary files
$opt_tmpdir
=
tempdir
(
TMPDIR
=>
1
,
CLEANUP
=>
1
);
mtr_report
("
- using tmpdir: '
$opt_tmpdir
'
\n
");
}
}
$opt_tmpdir
=~
s,/+$,,
;
# Remove ending slash if any
$opt_tmpdir
=~
s,/+$,,
;
# Remove ending slash if any
# --------------------------------------------------------------------------
# --------------------------------------------------------------------------
...
...
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