VERBOSE_MSG(qry, "=> stashing RRs errored out\n");
goto finally;
}
+ /* Mark entry as cached for the rest of the query processing */
+ entry->cached = true;
/* LATER(optim.): maybe filter out some type-rank combinations
* that won't be useful as separate RRsets. */
}
/* TODO: ATM we assume that some properties are the same
* for all RRSIGs in the set (esp. label count). */
ranked_rr_array_entry_t *e = arr->at[j];
- bool ok = e->qry_uid == qry->uid && !e->cached
+ bool ok = e->qry_uid == qry->uid
&& e->rr->type == KNOT_RRTYPE_RRSIG
&& knot_rrsig_type_covered(&e->rr->rrs, 0) == rr->type
&& knot_dname_is_equal(rr->owner, e->rr->owner);
uint32_t qry_uid;
uint8_t rank; /**< enum kr_rank */
uint8_t revalidation_cnt;
- bool cached : 1; /**< whether it has been stashed to cache already */
+ bool cached : 1; /**< Set to true if the entry was written into cache */
bool yielded : 1;
bool to_wire : 1; /**< whether to be put into the answer */
bool expiring : 1; /**< low remaining TTL; see is_expiring; only used in cache ATM */