mirror of
https://github.com/isc-projects/bind9.git
synced 2026-03-24 03:13:38 -04:00
to reduce the amount of common code that will need to be shared between the separated cache and zone database implementations, clean up unused portions of dns_db. the methods dns_db_dump(), dns_db_isdnssec(), dns_db_printnode(), dns_db_resigned(), dns_db_expirenode() and dns_db_overmem() were either never called or were only implemented as nonoperational stub functions: they have now been removed. dns_db_nodefullname() was only used in one place, which turned out to be unnecessary, so it has also been removed. dns_db_ispersistent() and dns_db_transfernode() are used, but only the default implementation in db.c was ever actually called. since they were never overridden by database methods, there's no need to retain methods for them. in rbtdb.c, beginload() and endload() methods are no longer defined for the cache database, because that was never used (except in a few unit tests which can easily be modified to use the zone implementation instead). issecure() is also no longer defined for the cache database, as the cache is always insecure and the default implementation of dns_db_issecure() returns false. for similar reasons, hashsize() is no longer defined for zone databases. implementation functions that are shared between zone and cache are now prepended with 'dns__rbtdb_' so they can become nonstatic. serve_stale_ttl is now a common member of dns_db. |
||
|---|---|---|
| .. | ||
| isc | ||
| .clang-format | ||