]> git.ipfire.org Git - thirdparty/knot-resolver.git/commit
cache: restored kr_cache_insert_rr API
authorVladimír Čunát <vladimir.cunat@nic.cz>
Mon, 23 Apr 2018 12:26:48 +0000 (14:26 +0200)
committerVladimír Čunát <vladimir.cunat@nic.cz>
Mon, 23 Apr 2018 12:34:39 +0000 (14:34 +0200)
commitd22cb3480705b9dd970ee95e57c1c024353d3772
tree69ad942ba1c608adfb2dfcfdc2e10c10f96eb8f7
parentc77bce8a0d2fe3e72542f87cf3914579d2bd8688
cache: restored kr_cache_insert_rr API

This commit abstracts out stash_rrset from stash_rrarray_entry,
and fixes incrementing metrics on actual record insertion.
It then resurfaces kr_cache_insert_rr that was deleted in 2.0
using the extracted function.

vcunat separated stash_rrset_precond() later during rebase.
lib/cache/api.c
lib/cache/api.h