]> git.ipfire.org Git - thirdparty/knot-resolver.git/commit
lib/rplan: removed long-lived wr transactions
authorMarek Vavruša <marek.vavrusa@nic.cz>
Sun, 26 Apr 2015 21:09:34 +0000 (23:09 +0200)
committerMarek Vavruša <marek.vavrusa@nic.cz>
Sun, 26 Apr 2015 21:18:44 +0000 (23:18 +0200)
commiteeca41a5d9339dcdf79a0dc93ce274c9711ec7b2
tree05cf998391a05a90d295c75d63dc52e346f9fbea
parent2c84768675b552a4066752d04a7dae22f322f181
lib/rplan: removed long-lived wr transactions

the reason is that LMDB allows only 1 write transaction
per thread, and this doesn’t work well with multiplexed
requests. there is probably going to be some performance hit,
but now transactions are scoped for each cache operation
lib/layer/itercache.c
lib/resolve.c
lib/rplan.c
lib/rplan.h
tests/test_rplan.c
tests/testdata/iter_cname_qnamecopy.rpl