]> git.ipfire.org Git - thirdparty/bind9.git/commit
Make sure that recursclient gauge is calculated correctly.
authorWitold Kręcicki <wpk@isc.org>
Tue, 11 Jun 2019 09:32:35 +0000 (11:32 +0200)
committerMark Andrews <marka@isc.org>
Thu, 13 Jun 2019 03:35:44 +0000 (13:35 +1000)
commit24cfee942fdf829914cdfbc77f9e2b8d323a64aa
tree5e4a55a221434351ecf9e44f4d116e740df6583d
parentcd3b656001c05e40816cb11f41c33fb90627ef50
Make sure that recursclient gauge is calculated correctly.

We increase recursclients when we attach to recursion quota,
decrease when we detach. In some cases, when we hit soft
quota, we might attach to quota without increasing recursclients
gauge. We then decrease the gauge when we detach from quota,
and it causes the statistics to underflow.
Fix makes sure that we increase recursclients always when we
succesfully attach to recursion quota.
lib/ns/query.c