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
79c73beb
Commit
79c73beb
authored
Feb 18, 2005
by
tomas@poseidon.ndb.mysql.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
make sure we handle a failure case in connect_mgmd correctly
parent
8d4142ee
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
9 deletions
+8
-9
ndb/src/common/transporter/TransporterRegistry.cpp
ndb/src/common/transporter/TransporterRegistry.cpp
+6
-7
ndb/src/mgmapi/mgmapi.cpp
ndb/src/mgmapi/mgmapi.cpp
+2
-2
No files found.
ndb/src/common/transporter/TransporterRegistry.cpp
View file @
79c73beb
...
...
@@ -1458,12 +1458,7 @@ TransporterRegistry::startReceiving()
DBUG_PRINT
(
"error"
,(
"Install failed"
));
g_eventLogger
.
error
(
"Failed to install signal handler for"
" SHM transporter errno: %d (%s)"
,
errno
,
#ifdef HAVE_STRERROR
strerror
(
errno
)
#else
""
#endif
);
strerror
(
errno
));
}
}
#endif // NDB_SHM_TRANSPORTER
...
...
@@ -1578,7 +1573,11 @@ NDB_SOCKET_TYPE TransporterRegistry::connect_ndb_mgmd(SocketClient *sc)
ndb_mgm_destroy_handle
(
&
h
);
return
NDB_INVALID_SOCKET
;
}
return
ndb_mgm_convert_to_transporter
(
h
);
NDB_SOCKET_TYPE
sockfd
=
ndb_mgm_convert_to_transporter
(
h
);
if
(
sockfd
==
NDB_INVALID_SOCKET
)
ndb_mgm_destroy_handle
(
&
h
);
return
sockfd
;
}
template
class
Vector
<
TransporterRegistry
::
Transporter_interface
>;
ndb/src/mgmapi/mgmapi.cpp
View file @
79c73beb
...
...
@@ -2184,8 +2184,8 @@ ndb_mgm_convert_to_transporter(NdbMgmHandle handle)
{
NDB_SOCKET_TYPE
s
;
CHECK_HANDLE
(
handle
,
-
1
);
CHECK_CONNECTED
(
handle
,
-
2
);
CHECK_HANDLE
(
handle
,
NDB_INVALID_SOCKET
);
CHECK_CONNECTED
(
handle
,
NDB_INVALID_SOCKET
);
handle
->
connected
=
0
;
// we pretend we're disconnected
s
=
handle
->
socket
;
...
...
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