]> git.ipfire.org Git - thirdparty/bind9.git/commit
Move the dns_db_setloop into cache_create_db()
authorOndřej Surý <ondrej@isc.org>
Wed, 6 Mar 2024 17:14:32 +0000 (18:14 +0100)
committerOndřej Surý <ondrej@isc.org>
Wed, 6 Mar 2024 17:33:33 +0000 (18:33 +0100)
commitd492d676ef16d1dc8e78985adf77772b82f2d8ad
treea8c55c52bf2675752ac39f06d239d57845a5089b
parent58b5ef6f2a36b66f248ca4182dcadc90d733c560
Move the dns_db_setloop into cache_create_db()

The dns_cache_flush() drops the old database and creates a new one, but
it forgets to pass the loop 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