Skip to content
Snippets Groups Projects
Commit 264859a5 authored by Marek Vavruša's avatar Marek Vavruša
Browse files

cache: handle time skip / cache fetch on newer queries

parent 3abfab19
Branches
Tags
No related merge requests found
......@@ -89,7 +89,7 @@ int kr_cache_query(namedb_txn_t *txn, knot_rrset_t *rr, uint32_t *timestamp)
rr->rrs.data = found_rr->data;
/* No time constraint */
if (timestamp == NULL) {
if (timestamp == NULL || *timestamp < found_rr->timestamp) {
return KNOT_EOK;
}
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment