]> 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)
committerMichał Kępień <michal@isc.org>
Wed, 6 Mar 2024 18:17:32 +0000 (19:17 +0100)
commit5f98eba608ed47cd604bedc0cb00a4b0de386c30
tree172728b170150607698ee1a111ce61f737e6000d
parenteba7fb5f9f4925bbfd0d85847117847586b1ee9e
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.

(cherry picked from commit d4bc4e5cc6802c7ea382145d431782be28bc97a9)
lib/dns/cache.c
lib/dns/include/dns/cache.h