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
Sebastian Schrader
Kea
Commits
ed2adc06
Commit
ed2adc06
authored
Jan 28, 2013
by
JINMEI Tatuya
Browse files
[2310] added some implementation notes as comment for in-memory findAtOrigin.
parent
4760fba1
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/lib/datasrc/memory/zone_finder.cc
View file @
ed2adc06
...
...
@@ -765,6 +765,16 @@ InMemoryZoneFinder::findAll(const isc::dns::Name& name,
options
))));
}
// The implementation is a special case of the generic findInternal: we know
// the qname should have an "exact match" and its node is accessible via
// getOriginNode(); and, since there should be at least SOA RR at the origin
// the case of CNAME can be eliminated (these should be guaranteed at the load
// or update time, but even if they miss a corner case and allows a CNAME to
// be added at origin, the zone is broken anyway, so we'd just let this
// method return garbage, too). As a result, there can be only too cases
// for the result codes: SUCCESS if the requested type of RR exists; NXRRSET
// otherwise. Due to its simplicity we implement it separately, rather than
// sharing the code with findInternal.
boost
::
shared_ptr
<
ZoneFinder
::
Context
>
InMemoryZoneFinder
::
findAtOrigin
(
const
isc
::
dns
::
RRType
&
type
,
bool
use_minttl
,
...
...
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