Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ISC Open Source Projects
Kea
Commits
cb4c5b31
Commit
cb4c5b31
authored
Aug 31, 2012
by
JINMEI Tatuya
Browse files
[2098] try to improve in-method comments for isSameKind()
parent
8440ca54
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/lib/datasrc/memory/treenode_rrset.cc
View file @
cb4c5b31
...
...
@@ -339,11 +339,12 @@ TreeNodeRRset::isSameKind(const AbstractRRset& abs_other) const {
if
(
rdataset_
!=
other
->
rdataset_
)
{
return
(
false
);
}
// Same for the owner name (note: in practice this method would be
// called for rrsets at different nodes, so we check that condition
// first). Note also that based on the basic assumption of the
// ZoneTree, if the nodes are different their RR classes must be
// different.
// Same for the owner name. Comparing the nodes also detect
// the case where RR classes are different (see the method description
// of the header for details).
// hasSameRealName() is a bit more complicated and we expect the
// two nodes are often different here in practice, so we check that
// condition first.
if
(
node_
!=
other
->
node_
||
!
hasSameRealName
(
*
other
))
{
return
(
false
);
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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