]> git.ipfire.org Git - thirdparty/bind9.git/commit
Move the task creation into cache_create_db()
authorOndřej Surý <ondrej@isc.org>
Wed, 6 Mar 2024 12:26:04 +0000 (13:26 +0100)
committerOndřej Surý <ondrej@isc.org>
Wed, 6 Mar 2024 16:11:14 +0000 (17:11 +0100)
commit79040a669ca26b75b06c25d27418cee7ab658013
treef1f51138c73187b1727af6fe58ff394a55b34775
parent231b2375e5b9b98096711f5e883911134adb6392
Move the task creation into cache_create_db()

The dns_cache_flush() drops the old database and creates a new one, but
it forgets to create the task(s) that runs the node pruning and cleaning
the rbtdb when flushing it next time.  This causes the cleaning to skip
cleaning the parent nodes (with .down == NULL) leading to increased
memory usage over time until the database is unable to keep up and just
stays overmem all the time.
lib/dns/cache.c
lib/dns/include/dns/cache.h