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
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
mariadb
Commits
f21394be
Commit
f21394be
authored
Sep 14, 2006
by
jonas@perch.ndb.mysql.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ndb - bug#22195
also bind client to local host name if specified
parent
88d70378
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
4 deletions
+14
-4
ndb/src/common/transporter/Transporter.cpp
ndb/src/common/transporter/Transporter.cpp
+14
-4
No files found.
ndb/src/common/transporter/Transporter.cpp
View file @
f21394be
...
...
@@ -60,9 +60,6 @@ Transporter::Transporter(TransporterRegistry &t_reg,
}
strncpy
(
localHostName
,
lHostName
,
sizeof
(
localHostName
));
if
(
strlen
(
lHostName
)
>
0
)
Ndb_getInAddr
(
&
localHostAddress
,
lHostName
);
DBUG_PRINT
(
"info"
,(
"rId=%d lId=%d isServer=%d rHost=%s lHost=%s s_port=%d"
,
remoteNodeId
,
localNodeId
,
isServer
,
remoteHostName
,
localHostName
,
...
...
@@ -128,10 +125,23 @@ Transporter::connect_client() {
return
true
;
if
(
isMgmConnection
)
{
sockfd
=
m_transporter_registry
.
connect_ndb_mgmd
(
m_socket_client
);
}
else
{
if
(
!
m_socket_client
->
init
())
{
return
false
;
}
if
(
strlen
(
localHostName
)
>
0
)
{
if
(
m_socket_client
->
bind
(
localHostName
,
0
)
!=
0
)
return
false
;
}
sockfd
=
m_socket_client
->
connect
();
}
return
connect_client
(
sockfd
);
}
...
...
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