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
dcfa4914
Commit
dcfa4914
authored
Feb 04, 2011
by
JINMEI Tatuya
Browse files
[trac550] mark wildcarding node
parent
389cf02a
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/lib/datasrc/memory_datasrc.cc
View file @
dcfa4914
...
...
@@ -61,6 +61,7 @@ struct MemoryZone::MemoryZoneImpl {
// The tree stores domains
typedef
RBTree
<
Domain
,
true
>
DomainTree
;
typedef
RBNode
<
Domain
>
DomainNode
;
static
const
DomainNode
::
Flags
DOMAINFLAG_WILD
=
DomainNode
::
FLAG_USER1
;
// Information about the zone
RRClass
zone_class_
;
...
...
@@ -103,10 +104,12 @@ struct MemoryZone::MemoryZoneImpl {
assert
(
result
==
DomainTree
::
SUCCESS
||
result
==
DomainTree
::
ALREADYEXISTS
);
// Ensure a separate level exists for the "wildcarding" name
// Ensure a separate level exists for the "wildcarding" name,
// and mark the node as "wild".
result
=
domains
.
insert
(
wname
,
&
node
);
assert
(
result
==
DomainTree
::
SUCCESS
||
result
==
DomainTree
::
ALREADYEXISTS
);
node
->
setFlag
(
DOMAINFLAG_WILD
);
}
}
}
...
...
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