From: Vladimír Čunát Date: Thu, 20 May 2021 16:49:48 +0000 (+0200) Subject: fix a bug copied from libknot; GC seems to work now X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=7e77d9fbec32946d8057548993f1c9050aeff79c;p=thirdparty%2Fknot-resolver.git fix a bug copied from libknot; GC seems to work now --- diff --git a/lib/cache/cdb_compat.c b/lib/cache/cdb_compat.c index b15f6710b..7718d5c75 100644 --- a/lib/cache/cdb_compat.c +++ b/lib/cache/cdb_compat.c @@ -258,9 +258,8 @@ static int del(knot_db_txn_t *txn, knot_db_val_t *key) { struct lmdb_env *env = txn->db; MDB_val db_key = val_knot2mdb(*key); - MDB_val data = { 0 }; - int ret = mdb_del(txn->txn, env->dbi, &db_key, &data); + int ret = mdb_del(txn->txn, env->dbi, &db_key, NULL); if (ret != MDB_SUCCESS) { return lmdb_error_to_knot(ret); }