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
f53bf1b6
Commit
f53bf1b6
authored
Sep 16, 2004
by
magnus@neptunus.(none)
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added DBUG_PRINT
parent
251fe25b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
5 deletions
+12
-5
ndb/src/ndbapi/Ndblist.cpp
ndb/src/ndbapi/Ndblist.cpp
+12
-5
No files found.
ndb/src/ndbapi/Ndblist.cpp
View file @
f53bf1b6
...
...
@@ -29,24 +29,31 @@
void
Ndb
::
checkFailedNode
()
{
for
(
NodeId
i
=
0
;
i
<
theNoOfDBnodes
;
i
++
){
DBUG_ENTER
(
"Ndb::checkFailedNode"
);
DBUG_PRINT
(
"enter"
,
(
"theNoOfDBnodes: %d"
));
DBUG_ASSERT
(
theNoOfDBnodes
<
MAX_NDB_NODES
);
for
(
int
i
=
0
;
i
<
theNoOfDBnodes
;
i
++
){
const
NodeId
node_id
=
theDBnodes
[
i
];
DBUG_PRINT
(
"info"
,
(
"i: %d, node_id: %d"
,
i
,
node_id
));
NdbConnection
*
tNdbCon
=
theConnectionArray
[
node_id
];
DBUG_ASSERT
(
node_id
<
MAX_NDB_NODES
);
if
(
the_release_ind
[
node_id
]
==
1
){
/**
* Release all connections in idle list (for node)
*/
NdbConnection
*
tNdbCon
=
theConnectionArray
[
node_id
];
theConnectionArray
[
node_id
]
=
NULL
;
while
(
tNdbCon
!=
NULL
)
{
NdbConnection
*
tempNdbCon
=
tNdbCon
;
tNdbCon
=
tNdbCon
->
next
();
releaseNdbCon
(
tempNdbCon
);
}
//while
}
the_release_ind
[
node_id
]
=
0
;
}
//if
}
//for
}
}
DBUG_VOID_RETURN
;
}
#if 0
...
...
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