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
1f5ac05d
Commit
1f5ac05d
authored
Mar 30, 2006
by
kent@mysql.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mysql-test-run.pl:
Check that port range is valid, bug#16807
parent
6ce9c90d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
0 deletions
+11
-0
mysql-test/mysql-test-run.pl
mysql-test/mysql-test-run.pl
+11
-0
No files found.
mysql-test/mysql-test-run.pl
View file @
1f5ac05d
...
...
@@ -477,6 +477,10 @@ sub command_line_setup () {
# 5.1 test run, even if different MTR_BUILD_THREAD is used. This means
# all port numbers might not be used in this version of the script.
#
# Also note the limiteation of ports we are allowed to hand out. This
# differs between operating systems and configuration, see
# http://www.ncftp.com/ncftpd/doc/misc/ephemeral_ports.html
# But a fairly safe range seems to be 5001 - 32767
if
(
$ENV
{'
MTR_BUILD_THREAD
'}
)
{
# Up to two masters, up to three slaves
...
...
@@ -485,6 +489,13 @@ sub command_line_setup () {
$opt_ndbcluster_port
=
$opt_master_myport
+
5
;
}
if
(
$opt_master_myport
<
5001
or
$opt_master_myport
+
10
>=
32767
)
{
mtr_error
("
MTR_BUILD_THREAD number results in a port
",
"
outside 5001 - 32767
",
"
(
$opt_master_myport
-
$opt_master_myport
+ 10)
");
}
# Read the command line
# Note: Keep list, and the order, in sync with usage at end of this file
...
...
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