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
95f6b2eb
Commit
95f6b2eb
authored
Feb 17, 2005
by
mskold@mysql.com
Browse files
Options
Browse Files
Download
Plain Diff
Merge mskold@bk-internal.mysql.com:/home/bk/mysql-5.0-ndb
into mysql.com:/usr/local/home/marty/MySQL/test/mysql-5.0-ndb
parents
96188c81
703811c7
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
43 additions
and
2 deletions
+43
-2
ndb/src/mgmsrv/ConfigInfo.cpp
ndb/src/mgmsrv/ConfigInfo.cpp
+43
-2
No files found.
ndb/src/mgmsrv/ConfigInfo.cpp
View file @
95f6b2eb
...
...
@@ -3155,10 +3155,51 @@ fixPortNumber(InitConfigFileParser::Context & ctx, const char * data){
else
if
(
strcmp
(
type2
,
MGM_TOKEN
)
==
0
)
node2
->
get
(
"PortNumber"
,
&
port
);
if
(
!
node
->
get
(
"ServerPort"
,
&
port
)
&&
!
ctx
.
m_userProperties
.
get
(
"ServerPort_"
,
id1
,
&
port
))
{
if
(
!
port
&&
!
node
->
get
(
"ServerPort"
,
&
port
)
&&
!
ctx
.
m_userProperties
.
get
(
"ServerPort_"
,
id1
,
&
port
))
{
Uint32
base
=
0
;
/*
* If the connection doesn't involve an mgm server,
* and a default port number has been set, behave the old
* way of allocating port numbers for transporters.
*/
if
(
ctx
.
m_userDefaults
&&
ctx
.
m_userDefaults
->
get
(
"PortNumber"
,
&
base
))
{
Uint32
adder
=
0
;
{
BaseString
server_port_adder
(
hostname
);
server_port_adder
.
append
(
"_ServerPortAdder"
);
ctx
.
m_userProperties
.
get
(
server_port_adder
.
c_str
(),
&
adder
);
ctx
.
m_userProperties
.
put
(
server_port_adder
.
c_str
(),
adder
+
1
,
true
);
}
if
(
!
ctx
.
m_userProperties
.
get
(
"ServerPortBase"
,
&
base
)){
if
(
!
(
ctx
.
m_userDefaults
&&
ctx
.
m_userDefaults
->
get
(
"PortNumber"
,
&
base
))
&&
!
ctx
.
m_systemDefaults
->
get
(
"PortNumber"
,
&
base
))
{
base
=
strtoll
(
NDB_TCP_BASE_PORT
,
0
,
0
);
}
ctx
.
m_userProperties
.
put
(
"ServerPortBase"
,
base
);
}
port
=
base
+
adder
;
ctx
.
m_userProperties
.
put
(
"ServerPort_"
,
id1
,
port
);
}
}
if
(
ctx
.
m_currentSection
->
contains
(
"PortNumber"
))
{
ndbout
<<
"PortNumber should no longer be specificied "
<<
"per connection, please remove from config. "
<<
"Will be changed to "
<<
port
<<
endl
;
ctx
.
m_currentSection
->
put
(
"PortNumber"
,
port
,
true
);
}
else
{
ctx
.
m_currentSection
->
put
(
"PortNumber"
,
port
);
}
DBUG_PRINT
(
"info"
,
(
"connection %d-%d port %d host %s"
,
id1
,
id2
,
port
,
hostname
.
c_str
()));
...
...
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