mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-08-31 22:45:39 +00:00
Remove unused NS_QUERYATTR_CACHEGLUEOK query attribute
The NS_QUERYATTR_CACHEGLUEOK query attribute has no influence on query processing. Remove it.
This commit is contained in:
@@ -101,7 +101,6 @@ struct ns_query {
|
|||||||
#define NS_QUERYATTR_PARTIALANSWER 0x0004
|
#define NS_QUERYATTR_PARTIALANSWER 0x0004
|
||||||
#define NS_QUERYATTR_NAMEBUFUSED 0x0008
|
#define NS_QUERYATTR_NAMEBUFUSED 0x0008
|
||||||
#define NS_QUERYATTR_RECURSING 0x0010
|
#define NS_QUERYATTR_RECURSING 0x0010
|
||||||
#define NS_QUERYATTR_CACHEGLUEOK 0x0020
|
|
||||||
#define NS_QUERYATTR_QUERYOKVALID 0x0040
|
#define NS_QUERYATTR_QUERYOKVALID 0x0040
|
||||||
#define NS_QUERYATTR_QUERYOK 0x0080
|
#define NS_QUERYATTR_QUERYOK 0x0080
|
||||||
#define NS_QUERYATTR_WANTRECURSION 0x0100
|
#define NS_QUERYATTR_WANTRECURSION 0x0100
|
||||||
|
@@ -112,9 +112,6 @@ do { \
|
|||||||
/*% Recursing? */
|
/*% Recursing? */
|
||||||
#define RECURSING(c) (((c)->query.attributes & \
|
#define RECURSING(c) (((c)->query.attributes & \
|
||||||
NS_QUERYATTR_RECURSING) != 0)
|
NS_QUERYATTR_RECURSING) != 0)
|
||||||
/*% Cache glue ok? */
|
|
||||||
#define CACHEGLUEOK(c) (((c)->query.attributes & \
|
|
||||||
NS_QUERYATTR_CACHEGLUEOK) != 0)
|
|
||||||
/*% Want Recursion? */
|
/*% Want Recursion? */
|
||||||
#define WANTRECURSION(c) (((c)->query.attributes & \
|
#define WANTRECURSION(c) (((c)->query.attributes & \
|
||||||
NS_QUERYATTR_WANTRECURSION) != 0)
|
NS_QUERYATTR_WANTRECURSION) != 0)
|
||||||
@@ -8005,7 +8002,6 @@ query_delegation(query_ctx_t *qctx) {
|
|||||||
/*
|
/*
|
||||||
* This is the best answer.
|
* This is the best answer.
|
||||||
*/
|
*/
|
||||||
qctx->client->query.attributes |= NS_QUERYATTR_CACHEGLUEOK;
|
|
||||||
qctx->client->query.isreferral = ISC_TRUE;
|
qctx->client->query.isreferral = ISC_TRUE;
|
||||||
|
|
||||||
if (!dns_db_iscache(qctx->db) && qctx->client->query.gluedb == NULL) {
|
if (!dns_db_iscache(qctx->db) && qctx->client->query.gluedb == NULL) {
|
||||||
@@ -8026,7 +8022,6 @@ query_delegation(query_ctx_t *qctx) {
|
|||||||
query_addrrset(qctx->client, &qctx->fname,
|
query_addrrset(qctx->client, &qctx->fname,
|
||||||
&qctx->rdataset, sigrdatasetp,
|
&qctx->rdataset, sigrdatasetp,
|
||||||
qctx->dbuf, DNS_SECTION_AUTHORITY);
|
qctx->dbuf, DNS_SECTION_AUTHORITY);
|
||||||
qctx->client->query.attributes &= ~NS_QUERYATTR_CACHEGLUEOK;
|
|
||||||
if (detach) {
|
if (detach) {
|
||||||
dns_db_detach(&qctx->client->query.gluedb);
|
dns_db_detach(&qctx->client->query.gluedb);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user