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
703811c7
Commit
703811c7
authored
Feb 17, 2005
by
stewart@mysql.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Restore (depricated) functionality of specifying a port number per connection.
parent
00cf18c8
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
5 deletions
+11
-5
ndb/src/mgmsrv/ConfigInfo.cpp
ndb/src/mgmsrv/ConfigInfo.cpp
+11
-5
No files found.
ndb/src/mgmsrv/ConfigInfo.cpp
View file @
703811c7
...
...
@@ -3150,15 +3150,12 @@ fixPortNumber(InitConfigFileParser::Context & ctx, const char * data){
ctx
.
m_config
->
get
(
"Node"
,
id2
,
&
node2
);
node2
->
get
(
"Type"
,
&
type2
);
bool
is_mgm_connection
=
true
;
if
(
strcmp
(
type1
,
MGM_TOKEN
)
==
0
)
node
->
get
(
"PortNumber"
,
&
port
);
else
if
(
strcmp
(
type2
,
MGM_TOKEN
)
==
0
)
node2
->
get
(
"PortNumber"
,
&
port
);
else
is_mgm_connection
=
false
;
if
(
!
is_mgm_connection
&&
if
(
!
port
&&
!
node
->
get
(
"ServerPort"
,
&
port
)
&&
!
ctx
.
m_userProperties
.
get
(
"ServerPort_"
,
id1
,
&
port
))
{
...
...
@@ -3192,7 +3189,16 @@ fixPortNumber(InitConfigFileParser::Context & ctx, const char * data){
}
}
ctx
.
m_currentSection
->
put
(
"PortNumber"
,
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