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
5a0ae425
Commit
5a0ae425
authored
Apr 21, 2008
by
msvensson@pilot.mysql.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Move the check for socket path truncation to after the tmpdir has been created
since it's used by the check
parent
71e4de87
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
9 deletions
+9
-9
mysql-test/mysql-test-run.pl
mysql-test/mysql-test-run.pl
+9
-9
No files found.
mysql-test/mysql-test-run.pl
View file @
5a0ae425
...
@@ -606,15 +606,6 @@ sub command_line_setup {
...
@@ -606,15 +606,6 @@ sub command_line_setup {
$opt_tmpdir
=
"
$opt_vardir
/tmp
"
unless
$opt_tmpdir
;
$opt_tmpdir
=
"
$opt_vardir
/tmp
"
unless
$opt_tmpdir
;
$opt_tmpdir
=~
s,/+$,,
;
# Remove ending slash if any
$opt_tmpdir
=~
s,/+$,,
;
# Remove ending slash if any
# On some operating systems, there is a limit to the length of a
# UNIX domain socket's path far below PATH_MAX.
# Don't allow that to happen
if
(
check_socket_path_length
("
$opt_tmpdir
/testsocket.sock
")){
mtr_error
("
Socket path '
$opt_tmpdir
' too long, it would be
",
"
truncated and thus not possible to use for connection to
",
"
MySQL Server. Set a shorter with --tmpdir=<path> option
");
}
# --------------------------------------------------------------------------
# --------------------------------------------------------------------------
# fast option
# fast option
# --------------------------------------------------------------------------
# --------------------------------------------------------------------------
...
@@ -1440,6 +1431,15 @@ sub setup_vardir() {
...
@@ -1440,6 +1431,15 @@ sub setup_vardir() {
symlink
(
$opt_tmpdir
,
"
$opt_vardir
/tmp
");
symlink
(
$opt_tmpdir
,
"
$opt_vardir
/tmp
");
}
}
# On some operating systems, there is a limit to the length of a
# UNIX domain socket's path far below PATH_MAX.
# Don't allow that to happen
if
(
check_socket_path_length
("
$opt_tmpdir
/testsocket.sock
")){
mtr_error
("
Socket path '
$opt_tmpdir
' too long, it would be
",
"
truncated and thus not possible to use for connection to
",
"
MySQL Server. Set a shorter with --tmpdir=<path> option
");
}
# copy all files from std_data into var/std_data
# copy all files from std_data into var/std_data
# and make them writable
# and make them writable
copytree
("
$glob_mysql_test_dir
/std_data
",
"
$opt_vardir
/std_data
");
copytree
("
$glob_mysql_test_dir
/std_data
",
"
$opt_vardir
/std_data
");
...
...
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