Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Pavel Zhukov
Kea
Commits
c8e84e56
Commit
c8e84e56
authored
Jan 26, 2011
by
chenzhengzhang
Browse files
[trac503] Avoid creating unnecessary RRsetList
parent
239c9694
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/bin/auth/query.cc
View file @
c8e84e56
...
...
@@ -123,8 +123,6 @@ void
Query
::
process
()
const
{
bool
keep_doing
=
true
;
const
bool
qtype_is_any
=
(
qtype_
==
RRType
::
ANY
());
RRsetList
result_rrsets
;
RRsetList
*
target
=
NULL
;
response_
.
setHeaderFlag
(
Message
::
HEADERFLAG_AA
,
false
);
const
MemoryDataSrc
::
FindResult
result
=
...
...
@@ -145,11 +143,9 @@ Query::process() const {
response_
.
setHeaderFlag
(
Message
::
HEADERFLAG_AA
);
while
(
keep_doing
)
{
keep_doing
=
false
;
if
(
qtype_is_any
)
{
target
=
&
result_rrsets
;
}
Zone
::
FindResult
db_result
=
result
.
zone
->
find
(
qname_
,
qtype_
,
target
);
std
::
auto_ptr
<
RRsetList
>
target
(
qtype_is_any
?
new
RRsetList
:
NULL
);
Zone
::
FindResult
db_result
=
result
.
zone
->
find
(
qname_
,
qtype_
,
target
.
get
());
switch
(
db_result
.
code
)
{
case
Zone
::
SUCCESS
:
...
...
Write
Preview
Supports
Markdown
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