]> git.ipfire.org Git - thirdparty/knot-resolver.git/commitdiff
lib/rrcache: commit after cache prune
authorMarek Vavruša <marek.vavrusa@nic.cz>
Wed, 13 May 2015 09:36:57 +0000 (11:36 +0200)
committerMarek Vavruša <marek.vavrusa@nic.cz>
Wed, 13 May 2015 09:36:57 +0000 (11:36 +0200)
lib/layer/rrcache.c

index daaa341ed0d36ba887e3c1cd135aafdf7fc89a5a..2b23742ae290efffd81af18a5dbf05e3b5fb40ee 100644 (file)
@@ -240,6 +240,7 @@ static int stash(knot_layer_t *ctx, knot_pkt_t *pkt)
        /* Cache full, do what we must. */
        if (ret == KNOT_ESPACE) {
                kr_cache_clear(&txn);
+               kr_cache_txn_commit(&txn);
        } else {
                kr_cache_txn_commit(&txn);
        }