]> git.ipfire.org Git - thirdparty/knot-resolver.git/commit
lib/cache: abort transactions on errors
authorVladimír Čunát <vladimir.cunat@nic.cz>
Mon, 17 Aug 2020 08:38:20 +0000 (10:38 +0200)
committerPetr Špaček <petr.spacek@nic.cz>
Mon, 7 Sep 2020 15:45:57 +0000 (17:45 +0200)
commit5f81153b3c0fbb05cacddc544d9ff50b8e09939c
treef369f1dec2f8038c3275e010ef015171a4dd9fdd
parenta239187e0b34f549cd4ee97f0549fe2ac29a1a14
lib/cache: abort transactions on errors

This apparently gets rid of MDB_BAD_TXN failures that we were getting
when cache overflows.  Unfortunately LMDB docs don't mention that
after operation failures one should abort the corresponding transaction.
lib/cache/cdb_lmdb.c
lib/cache/entry_list.c