]> git.ipfire.org Git - thirdparty/knot-resolver.git/commit
daemon/io: close LMDB txns after control socket commands docs-develop-6-0-mvwoqi/deployments/2931
authorVladimír Čunát <vladimir.cunat@nic.cz>
Tue, 12 Dec 2023 09:32:30 +0000 (10:32 +0100)
committerVladimír Čunát <vladimir.cunat@nic.cz>
Wed, 13 Dec 2023 07:02:00 +0000 (08:02 +0100)
commit746b11bce84bf8ba0bc6edcc2755d2122d9806a1
tree4b3afced68d1a5243f0180a258ba9a76c2e1525e
parentdf85a4bdb359673518dbf9ebd7df3f884e2b2d73
daemon/io: close LMDB txns after control socket commands

There's the issue that during config-file loading we prefer to do all
changes in rule DB inside a single transaction, so the normal commands
do not close them.  However with control socket commands we can't afford
to leave transactions open (unclear for how long), especially RW transactions.
daemon/io.c