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
2619c54b
Commit
2619c54b
authored
Feb 11, 2006
by
kent@mysql.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mysql-test-run.{pl,sh}:
Give space for second and third slave port
parent
d23d02be
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
5 deletions
+11
-5
mysql-test/mysql-test-run.pl
mysql-test/mysql-test-run.pl
+10
-4
mysql-test/mysql-test-run.sh
mysql-test/mysql-test-run.sh
+1
-1
No files found.
mysql-test/mysql-test-run.pl
View file @
2619c54b
...
...
@@ -476,8 +476,8 @@ sub command_line_setup () {
if
(
$ENV
{'
MTR_BUILD_THREAD
'}
)
{
$opt_master_myport
=
$ENV
{'
MTR_BUILD_THREAD
'}
*
10
+
10000
;
$opt_slave_myport
=
$opt_master_myport
+
3
;
$opt_ndbcluster_port
=
$opt_master_myport
+
4
;
$opt_slave_myport
=
$opt_master_myport
+
2
;
# and 3 4
$opt_ndbcluster_port
=
$opt_master_myport
+
5
;
}
# Read the command line
...
...
@@ -985,12 +985,14 @@ sub environment_setup () {
$ENV
{'
USE_RUNNING_SERVER
'}
=
$glob_use_running_server
;
$ENV
{'
MYSQL_TEST_DIR
'}
=
$glob_mysql_test_dir
;
$ENV
{'
MYSQL_TEST_WINDIR
'}
=
$glob_mysql_test_dir
;
$ENV
{'
MASTER_MYSOCK
'}
=
$master
->
[
0
]
->
{'
path_mysock
'};
$ENV
{'
MASTER_WINMYSOCK
'}
=
$master
->
[
0
]
->
{'
path_mysock
'};
$ENV
{'
MASTER_MYSOCK
'}
=
$master
->
[
0
]
->
{'
path_mysock
'};
$ENV
{'
MASTER_MYSOCK1
'}
=
$master
->
[
1
]
->
{'
path_mysock
'};
$ENV
{'
MASTER_MYPORT
'}
=
$master
->
[
0
]
->
{'
path_myport
'};
$ENV
{'
MASTER_MYPORT1
'}
=
$master
->
[
1
]
->
{'
path_myport
'};
$ENV
{'
SLAVE_MYPORT
'}
=
$slave
->
[
0
]
->
{'
path_myport
'};
$ENV
{'
SLAVE_MYPORT1
'}
=
$slave
->
[
1
]
->
{'
path_myport
'};
$ENV
{'
SLAVE_MYPORT2
'}
=
$slave
->
[
2
]
->
{'
path_myport
'};
# $ENV{'MYSQL_TCP_PORT'}= '@MYSQL_TCP_PORT@'; # FIXME
$ENV
{'
MYSQL_TCP_PORT
'}
=
3306
;
...
...
@@ -1004,11 +1006,15 @@ sub environment_setup () {
}
}
$ENV
{
MTR_BUILD_THREAD
}
=
0
unless
$ENV
{
MTR_BUILD_THREAD
};
# Set if not set
# We are nice and report a bit about our settings
print
"
Using MTR_BUILD_THREAD =
",
$ENV
{
MTR_BUILD_THREAD
}
||
0
,"
\n
";
print
"
Using MTR_BUILD_THREAD =
$ENV
{MTR_BUILD_THREAD}
\n
";
print
"
Using MASTER_MYPORT =
$ENV
{MASTER_MYPORT}
\n
";
print
"
Using MASTER_MYPORT1 =
$ENV
{MASTER_MYPORT1}
\n
";
print
"
Using SLAVE_MYPORT =
$ENV
{SLAVE_MYPORT}
\n
";
print
"
Using SLAVE_MYPORT1 =
$ENV
{SLAVE_MYPORT1}
\n
";
print
"
Using SLAVE_MYPORT2 =
$ENV
{SLAVE_MYPORT2}
\n
";
print
"
Using NDBCLUSTER_PORT =
$opt_ndbcluster_port
\n
";
}
...
...
mysql-test/mysql-test-run.sh
View file @
2619c54b
...
...
@@ -224,7 +224,7 @@ if [ -n "$MTR_BUILD_THREAD" ] ; then
MASTER_MYPORT
=
`
expr
$MTR_BUILD_THREAD
'*'
10 + 10000
`
MYSQL_MANAGER_PORT
=
`
expr
$MASTER_MYPORT
+ 2
`
SLAVE_MYPORT
=
`
expr
$MASTER_MYPORT
+ 3
`
NDBCLUSTER_PORT
=
`
expr
$MASTER_MYPORT
+
4
`
NDBCLUSTER_PORT
=
`
expr
$MASTER_MYPORT
+
6
`
echo
"Using MTR_BUILD_THREAD =
$MTR_BUILD_THREAD
"
echo
"Using MASTER_MYPORT =
$MASTER_MYPORT
"
...
...
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