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
bb65bbe3
Commit
bb65bbe3
authored
Feb 11, 2005
by
stewart@mysql.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
return NDB_INVALID_SOCKET instead of -1 for Windows compatibility.
(Found in review by Tomas Ulin)
parent
196def91
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
ndb/src/common/transporter/TransporterRegistry.cpp
ndb/src/common/transporter/TransporterRegistry.cpp
+2
-2
No files found.
ndb/src/common/transporter/TransporterRegistry.cpp
View file @
bb65bbe3
...
...
@@ -1500,7 +1500,7 @@ NDB_SOCKET_TYPE TransporterRegistry::connect_ndb_mgmd(SocketClient *sc)
*/
cs
=
(
char
*
)
malloc
((
strlen
(
sc
->
get_server_name
())
+
20
)
*
sizeof
(
char
));
if
(
!
cs
)
return
-
1
;
return
NDB_INVALID_SOCKET
;
d
=
true
;
}
else
...
...
@@ -1512,7 +1512,7 @@ NDB_SOCKET_TYPE TransporterRegistry::connect_ndb_mgmd(SocketClient *sc)
ndb_mgm_set_connectstring
(
h
,
cs
);
if
(
ndb_mgm_connect
(
h
,
0
,
0
,
0
)
<
0
)
return
-
1
;
return
NDB_INVALID_SOCKET
;
for
(
unsigned
int
i
=
0
;
i
<
m_transporter_interface
.
size
();
i
++
)
ndb_mgm_set_connection_int_parameter
(
h
,
...
...
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