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
11ec718e
Commit
11ec718e
authored
Jul 07, 2005
by
stewart@mysql.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
BUG#11516 ndb_mgmd debug core on cluster shutdown with failed data nodes
Fix closing of sessions on mgm server shutdown.
parent
f5f434cf
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
1 deletion
+9
-1
ndb/include/mgmcommon/ConfigRetriever.hpp
ndb/include/mgmcommon/ConfigRetriever.hpp
+1
-0
ndb/src/common/mgmcommon/ConfigRetriever.cpp
ndb/src/common/mgmcommon/ConfigRetriever.cpp
+6
-0
ndb/src/mgmsrv/main.cpp
ndb/src/mgmsrv/main.cpp
+2
-1
No files found.
ndb/include/mgmcommon/ConfigRetriever.hpp
View file @
11ec718e
...
@@ -32,6 +32,7 @@ public:
...
@@ -32,6 +32,7 @@ public:
~
ConfigRetriever
();
~
ConfigRetriever
();
int
do_connect
(
int
no_retries
,
int
retry_delay_in_seconds
,
int
verbose
);
int
do_connect
(
int
no_retries
,
int
retry_delay_in_seconds
,
int
verbose
);
int
disconnect
();
/**
/**
* Get configuration for current node.
* Get configuration for current node.
...
...
ndb/src/common/mgmcommon/ConfigRetriever.cpp
View file @
11ec718e
...
@@ -107,6 +107,12 @@ ConfigRetriever::do_connect(int no_retries,
...
@@ -107,6 +107,12 @@ ConfigRetriever::do_connect(int no_retries,
0
:
-
1
;
0
:
-
1
;
}
}
int
ConfigRetriever
::
disconnect
()
{
return
ndb_mgm_disconnect
(
m_handle
);
}
//****************************************************************************
//****************************************************************************
//****************************************************************************
//****************************************************************************
//****************************************************************************
//****************************************************************************
...
...
ndb/src/mgmsrv/main.cpp
View file @
11ec718e
...
@@ -353,7 +353,8 @@ int main(int argc, char** argv)
...
@@ -353,7 +353,8 @@ int main(int argc, char** argv)
g_eventLogger
.
info
(
"Shutting down server..."
);
g_eventLogger
.
info
(
"Shutting down server..."
);
glob
.
socketServer
->
stopServer
();
glob
.
socketServer
->
stopServer
();
glob
.
socketServer
->
stopSessions
();
glob
.
mgmObject
->
get_config_retriever
()
->
disconnect
();
glob
.
socketServer
->
stopSessions
(
true
);
g_eventLogger
.
info
(
"Shutdown complete"
);
g_eventLogger
.
info
(
"Shutdown complete"
);
return
0
;
return
0
;
error_end:
error_end:
...
...
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