summaryrefslogtreecommitdiff
path: root/mysql-test
diff options
context:
space:
mode:
authorkent@mysql.com <>2006-03-30 06:48:40 +0200
committerkent@mysql.com <>2006-03-30 06:48:40 +0200
commitae532e2611066180d64386debfa6abe130100e50 (patch)
tree3c24b61a9a6a34bb2f249f34e6bd757394a6c79c /mysql-test
parent70a8f32d81c92f79f445a4084881bbec059ddb4e (diff)
parent1f5ac05df02e6e5ab62d4c3853d83a3451a063ef (diff)
downloadmariadb-git-ae532e2611066180d64386debfa6abe130100e50.tar.gz
Merge
Diffstat (limited to 'mysql-test')
-rwxr-xr-xmysql-test/mysql-test-run.pl11
1 files changed, 11 insertions, 0 deletions
diff --git a/mysql-test/mysql-test-run.pl b/mysql-test/mysql-test-run.pl
index 23aeb004c71..9960aa2d47a 100755
--- a/mysql-test/mysql-test-run.pl
+++ b/mysql-test/mysql-test-run.pl
@@ -526,6 +526,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
@@ -537,6 +541,13 @@ sub command_line_setup () {
$im_mysqld2_port= $opt_master_myport + 8;
}
+ 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