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
a38d713f
Commit
a38d713f
authored
Dec 20, 2004
by
joreland@mysql.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ndb - fix rare 4012 which was nodefailrep before disconnect
parent
fd0b4699
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
6 deletions
+9
-6
ndb/src/ndbapi/ClusterMgr.cpp
ndb/src/ndbapi/ClusterMgr.cpp
+9
-6
No files found.
ndb/src/ndbapi/ClusterMgr.cpp
View file @
a38d713f
...
@@ -429,7 +429,6 @@ ClusterMgr::reportDisconnected(NodeId nodeId){
...
@@ -429,7 +429,6 @@ ClusterMgr::reportDisconnected(NodeId nodeId){
noOfConnectedNodes
--
;
noOfConnectedNodes
--
;
theNodes
[
nodeId
].
connected
=
false
;
theNodes
[
nodeId
].
connected
=
false
;
theNodes
[
nodeId
].
m_info
.
m_connectCount
++
;
reportNodeFailed
(
nodeId
);
reportNodeFailed
(
nodeId
);
}
}
...
@@ -439,18 +438,22 @@ ClusterMgr::reportNodeFailed(NodeId nodeId){
...
@@ -439,18 +438,22 @@ ClusterMgr::reportNodeFailed(NodeId nodeId){
Node
&
theNode
=
theNodes
[
nodeId
];
Node
&
theNode
=
theNodes
[
nodeId
];
theNode
.
m_alive
=
false
;
theNode
.
m_alive
=
false
;
theNode
.
m_info
.
m_connectCount
++
;
if
(
theNode
.
connected
)
if
(
theNode
.
connected
)
{
theFacade
.
doDisconnect
(
nodeId
);
theFacade
.
doDisconnect
(
nodeId
);
}
const
bool
report
=
(
theNode
.
m_state
.
startLevel
!=
NodeState
::
SL_NOTHING
);
const
bool
report
=
(
theNode
.
m_state
.
startLevel
!=
NodeState
::
SL_NOTHING
);
theNode
.
m_state
.
startLevel
=
NodeState
::
SL_NOTHING
;
theNode
.
m_state
.
startLevel
=
NodeState
::
SL_NOTHING
;
if
(
report
){
if
(
report
)
{
theFacade
.
ReportNodeDead
(
nodeId
);
theFacade
.
ReportNodeDead
(
nodeId
);
}
}
theNode
.
nfCompleteRep
=
false
;
theNode
.
nfCompleteRep
=
false
;
if
(
noOfConnectedNodes
==
0
){
if
(
noOfConnectedNodes
==
0
){
NFCompleteRep
rep
;
NFCompleteRep
rep
;
for
(
Uint32
i
=
1
;
i
<
MAX_NODES
;
i
++
){
for
(
Uint32
i
=
1
;
i
<
MAX_NODES
;
i
++
){
...
...
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