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
21891289
Commit
21891289
authored
Jul 22, 2005
by
stewart@mysql.com
Browse files
Options
Browse Files
Download
Plain Diff
Merge ssmith@bk-internal.mysql.com:/home/bk/mysql-5.0-ndb
into mysql.com:/home/stewart/Documents/MySQL/5.0/bug10950
parents
f3ba8ea2
d09df616
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
39 additions
and
11 deletions
+39
-11
ndb/src/common/transporter/TransporterRegistry.cpp
ndb/src/common/transporter/TransporterRegistry.cpp
+7
-1
ndb/src/mgmapi/mgmapi.cpp
ndb/src/mgmapi/mgmapi.cpp
+32
-10
No files found.
ndb/src/common/transporter/TransporterRegistry.cpp
View file @
21891289
...
...
@@ -1310,11 +1310,17 @@ TransporterRegistry::start_clients_thread()
if
(
server_port
)
t
->
set_s_port
(
server_port
);
}
else
else
if
(
ndb_mgm_is_connected
(
m_mgm_handle
))
{
ndbout_c
(
"Failed to get dynamic port to connect to: %d"
,
res
);
ndb_mgm_disconnect
(
m_mgm_handle
);
}
else
{
ndbout_c
(
"Management server closed connection early. "
"It is probably being shut down (or has crashed). "
"We will retry the connection."
);
}
}
/** else
* We will not be able to get a new port unless
...
...
ndb/src/mgmapi/mgmapi.cpp
View file @
21891289
...
...
@@ -326,17 +326,23 @@ ndb_mgm_call(NdbMgmHandle handle, const ParserRow<ParserDummy> *command_reply,
const
Properties
*
p
=
parser
.
parse
(
ctx
,
session
);
if
(
p
==
NULL
){
/**
* Print some info about why the parser returns NULL
*/
ndbout
<<
"Error in mgm protocol parser. "
<<
"cmd: '"
<<
cmd
<<
"' status="
<<
(
Uint32
)
ctx
.
m_status
<<
", curr="
<<
ctx
.
m_currentToken
if
(
!
ndb_mgm_is_connected
(
handle
))
{
return
NULL
;
}
else
{
/**
* Print some info about why the parser returns NULL
*/
ndbout
<<
"Error in mgm protocol parser. "
<<
"cmd: '"
<<
cmd
<<
"' status="
<<
(
Uint32
)
ctx
.
m_status
<<
", curr="
<<
ctx
.
m_currentToken
<<
endl
;
DBUG_PRINT
(
"info"
,(
"ctx.status: %d, ctx.m_currentToken: %s"
,
ctx
.
m_status
,
ctx
.
m_currentToken
));
}
DBUG_PRINT
(
"info"
,(
"ctx.status: %d, ctx.m_currentToken: %s"
,
ctx
.
m_status
,
ctx
.
m_currentToken
));
}
}
#ifdef MGMAPI_LOG
else
{
/**
...
...
@@ -354,8 +360,24 @@ ndb_mgm_call(NdbMgmHandle handle, const ParserRow<ParserDummy> *command_reply,
extern
"C"
int
ndb_mgm_is_connected
(
NdbMgmHandle
handle
)
{
struct
pollfd
pfd
[
1
];
int
r
;
if
(
!
handle
)
return
0
;
if
(
handle
->
connected
)
{
pfd
[
0
].
fd
=
handle
->
socket
;
pfd
[
0
].
events
=
POLLHUP
|
POLLIN
|
POLLOUT
|
POLLNVAL
;
pfd
[
0
].
revents
=
0
;
r
=
poll
(
pfd
,
1
,
0
);
if
(
pfd
[
0
].
revents
&
POLLHUP
)
{
handle
->
connected
=
0
;
NDB_CLOSE_SOCKET
(
handle
->
socket
);
}
}
return
handle
->
connected
;
}
...
...
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