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
328a8cca
Commit
328a8cca
authored
Dec 15, 2006
by
lzhou/zhl@dev3-63.dev.cn.tlan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
BUG#22261 remove global variable global_mgmt_server_check from ClusterMgr
parent
3397f66a
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 addition
and
7 deletions
+1
-7
storage/ndb/src/mgmsrv/main.cpp
storage/ndb/src/mgmsrv/main.cpp
+0
-4
storage/ndb/src/ndbapi/ClusterMgr.cpp
storage/ndb/src/ndbapi/ClusterMgr.cpp
+1
-3
No files found.
storage/ndb/src/mgmsrv/main.cpp
View file @
328a8cca
...
...
@@ -132,8 +132,6 @@ bool g_StopServer;
bool
g_RestartServer
;
extern
EventLogger
g_eventLogger
;
extern
int
global_mgmt_server_check
;
enum
ndb_mgmd_options
{
OPT_INTERACTIVE
=
NDB_STD_OPTIONS_LAST
,
OPT_NO_NODEID_CHECKS
,
...
...
@@ -208,8 +206,6 @@ int main(int argc, char** argv)
start:
glob
=
new
MgmGlobals
;
global_mgmt_server_check
=
1
;
if
(
opt_interactive
||
opt_non_interactive
||
g_print_full_config
)
{
...
...
storage/ndb/src/ndbapi/ClusterMgr.cpp
View file @
328a8cca
...
...
@@ -361,8 +361,6 @@ ClusterMgr::execAPI_REGREQ(const Uint32 * theData){
theFacade
.
sendSignalUnCond
(
&
signal
,
nodeId
);
}
int
global_mgmt_server_check
=
0
;
// set to one in mgmtsrvr main;
void
ClusterMgr
::
execAPI_REGCONF
(
const
Uint32
*
theData
){
const
ApiRegConf
*
const
apiRegConf
=
(
ApiRegConf
*
)
&
theData
[
0
];
...
...
@@ -380,7 +378,7 @@ ClusterMgr::execAPI_REGCONF(const Uint32 * theData){
if
(
node
.
m_info
.
m_version
!=
apiRegConf
->
version
){
node
.
m_info
.
m_version
=
apiRegConf
->
version
;
if
(
global_mgmt_server_check
==
1
)
if
(
theNodes
[
theFacade
.
ownId
()].
m_info
.
m_type
==
NodeInfo
::
MGM
)
node
.
compatible
=
ndbCompatible_mgmt_ndb
(
NDB_VERSION
,
node
.
m_info
.
m_version
);
else
...
...
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