Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
ISC Open Source Projects
BIND
Commits
b4750b59
Commit
b4750b59
authored
Jun 03, 2016
by
Mark Andrews
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
reset zversion on restart
parent
c2afbab9
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
bin/named/query.c
bin/named/query.c
+4
-2
No files found.
bin/named/query.c
View file @
b4750b59
...
...
@@ -3302,6 +3302,7 @@ query_addbestns(ns_client_t *client) {
if
(
sigrdataset
!=
NULL
)
query_putrdataset
(
client
,
&
sigrdataset
);
RESTORE
(
db
,
zdb
);
RESTORE
(
fname
,
zfname
);
RESTORE
(
rdataset
,
zrdataset
);
RESTORE
(
sigrdataset
,
zsigrdataset
);
...
...
@@ -6821,6 +6822,7 @@ query_find(ns_client_t *client, dns_fetchevent_t *event, dns_rdatatype_t qtype)
want_restart
=
ISC_FALSE
;
authoritative
=
ISC_FALSE
;
version
=
NULL
;
zversion
=
NULL
;
need_wildcardproof
=
ISC_FALSE
;
if
(
client
->
view
->
checknames
&&
...
...
@@ -7463,9 +7465,9 @@ query_find(ns_client_t *client, dns_fetchevent_t *event, dns_rdatatype_t qtype)
dns_db_detachnode
(
db
,
&
node
);
SAVE
(
zdb
,
db
);
SAVE
(
zfname
,
fname
);
SAVE
(
zversion
,
version
);
SAVE
(
zrdataset
,
rdataset
);
SAVE
(
zsigrdataset
,
sigrdataset
);
SAVE
(
zversion
,
version
);
dns_db_attach
(
client
->
view
->
cachedb
,
&
db
);
is_zone
=
ISC_FALSE
;
goto
db_find
;
...
...
@@ -7504,9 +7506,9 @@ query_find(ns_client_t *client, dns_fetchevent_t *event, dns_rdatatype_t qtype)
version
=
NULL
;
RESTORE
(
fname
,
zfname
);
RESTORE
(
version
,
zversion
);
RESTORE
(
rdataset
,
zrdataset
);
RESTORE
(
sigrdataset
,
zsigrdataset
);
RESTORE
(
version
,
zversion
);
/*
* We don't clean up zdb here because we
* may still need it. It will get cleaned
...
...
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