Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
K
Knot Resolver
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Container Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Jonathan Coetzee
Knot Resolver
Commits
c2978348
Commit
c2978348
authored
Nov 28, 2018
by
Vladimír Čunát
Browse files
Options
Browse Files
Download
Plain Diff
Merge
!715
: lib/resolve: fix build with -DNOVERBOSELOG
Fixes
#424
.
parents
18745414
a027206d
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
NEWS
NEWS
+1
-0
lib/resolve.c
lib/resolve.c
+3
-4
No files found.
NEWS
View file @
c2978348
...
...
@@ -18,6 +18,7 @@ Bugfixes
--------
- http module: only run prometheus in parent process if using --forks=N,
as the submodule collects metrics from all sub-processes as well.
- fix build with -DNOVERBOSELOG (#424)
Improvements
------------
...
...
lib/resolve.c
View file @
c2978348
...
...
@@ -1607,10 +1607,6 @@ int kr_resolve_checkout(struct kr_request *request, const struct sockaddr *src,
int
kr_resolve_finish
(
struct
kr_request
*
request
,
int
state
)
{
#ifndef NOVERBOSELOG
struct
kr_rplan
*
rplan
=
&
request
->
rplan
;
#endif
/* Finalize answer and construct wire-buffer. */
ITERATE_LAYERS
(
request
,
NULL
,
answer_finalize
);
if
(
request
->
state
==
KR_STATE_FAIL
)
{
...
...
@@ -1632,9 +1628,12 @@ int kr_resolve_finish(struct kr_request *request, int state)
request
->
state
=
state
;
ITERATE_LAYERS
(
request
,
NULL
,
finish
);
#ifndef NOVERBOSELOG
struct
kr_rplan
*
rplan
=
&
request
->
rplan
;
struct
kr_query
*
last
=
kr_rplan_last
(
rplan
);
VERBOSE_MSG
(
last
,
"finished: %d, queries: %zu, mempool: %zu B
\n
"
,
request
->
state
,
rplan
->
resolved
.
len
,
(
size_t
)
mp_total_size
(
request
->
pool
.
ctx
));
#endif
/* Trace request finish */
if
(
request
->
trace_finish
)
{
...
...
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