ret = cache_op(cache, write, &key, &val, 1);
}
}
- cache_op(cache, sync);
+ kr_cache_sync(cache);
return ret;
}
static int cdb_clear(knot_db_t *db)
{
struct lmdb_env *env = db;
+ /* Always attempt to commit write transactions in-flight. */
+ (void) cdb_sync(db);
/* Since there is no guarantee that there will be free
* pages to hold whole dirtied db for transaction-safe clear,
}
}
- knot_rrset_t query_rr;
- knot_rrset_init(&query_rr, rr->owner, rr->type, rr->rclass);
uint8_t flags = KR_CACHE_FLAG_NONE;
if ((rank & KR_RANK_AUTH) && (baton->qry->flags & QUERY_DNSSEC_WEXPAND)) {
flags |= KR_CACHE_FLAG_WCARD_PROOF;
}
/* Copy name as it may overlap with cut name that is to be replaced. */
knot_dname_t *qname = knot_dname_copy(name, cut->pool);
- const knot_dname_t *label = qname;
- if (!label) {
+ if (!qname) {
return kr_error(ENOMEM);
}
/* Start at QNAME parent. */
+ const knot_dname_t *label = qname;
while (true) {
/* Fetch NS first and see if it's insecure. */
uint8_t rank = 0;
NETTLE_URL="https://ftp.gnu.org/gnu/nettle/nettle-${NETTLE_TAG}.tar.gz"
GNUTLS_TAG="3.3.12"
GNUTLS_URL="ftp://ftp.gnutls.org/gcrypt/gnutls/v3.3/gnutls-${GNUTLS_TAG}.tar.xz"
-LUA_TAG="v2.1.0-beta1"
+LUA_TAG="v2.1.0-beta2"
LUA_URL="https://github.com/LuaJIT/LuaJIT.git"
HIREDIS_TAG="v0.13.3"
HIREDIS_URL="https://github.com/redis/hiredis.git"