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
b55796af
Commit
b55796af
authored
Nov 24, 2005
by
ramil@mysql.com
Browse files
Options
Browse Files
Download
Plain Diff
Merge rkalimullin@bk-internal.mysql.com:/home/bk/mysql-5.0
into mysql.com:/usr/home/ram/work/5.0.b15047
parents
c0cdfe85
2b57e704
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
1 deletion
+13
-1
ndb/src/common/mgmcommon/ConfigRetriever.cpp
ndb/src/common/mgmcommon/ConfigRetriever.cpp
+6
-0
ndb/src/mgmapi/mgmapi.cpp
ndb/src/mgmapi/mgmapi.cpp
+7
-1
No files found.
ndb/src/common/mgmcommon/ConfigRetriever.cpp
View file @
b55796af
...
...
@@ -341,9 +341,15 @@ ConfigRetriever::allocNodeId(int no_retries, int retry_delay_in_seconds)
{
while
(
1
)
{
if
(
!
ndb_mgm_is_connected
(
m_handle
))
if
(
!
ndb_mgm_connect
(
m_handle
,
0
,
0
,
0
))
goto
next
;
int
res
=
ndb_mgm_alloc_nodeid
(
m_handle
,
m_version
,
m_node_type
);
if
(
res
>=
0
)
return
_ownNodeId
=
(
Uint32
)
res
;
next:
if
(
no_retries
==
0
)
break
;
no_retries
--
;
...
...
ndb/src/mgmapi/mgmapi.cpp
View file @
b55796af
...
...
@@ -336,10 +336,16 @@ ndb_mgm_call(NdbMgmHandle handle, const ParserRow<ParserDummy> *command_reply,
const
Properties
*
p
=
parser
.
parse
(
ctx
,
session
);
if
(
p
==
NULL
){
if
(
!
ndb_mgm_is_connected
(
handle
))
{
return
NULL
;
DBUG_RETURN
(
NULL
)
;
}
else
{
if
(
ctx
.
m_status
==
Parser_t
::
Eof
||
ctx
.
m_status
==
Parser_t
::
NoLine
)
{
ndb_mgm_disconnect
(
handle
);
DBUG_RETURN
(
NULL
);
}
/**
* Print some info about why the parser returns NULL
*/
...
...
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