]> git.ipfire.org Git - thirdparty/bind9.git/commit
move slab rdataset implementation to rdataslab.c
authorEvan Hunt <each@isc.org>
Wed, 10 May 2023 06:07:50 +0000 (23:07 -0700)
committerOndřej Surý <ondrej@isc.org>
Mon, 17 Jul 2023 12:50:25 +0000 (14:50 +0200)
commit445ef1d0338725ab892b572f878fae0a37e805cf
treeb9b4e8d9a7d76cd818d69c7b2bd5b8e2ff6f1e73
parent17f85f6c93ac21f063c274c640157a0b07607cfd
move slab rdataset implementation to rdataslab.c

ultimately we want the slab implementation of dns_rdataset to
be usable by more database implementaions than just rbtdb. this
commit moves rdataset_methods to rdataslab.c, renamed
dns_rdataslab_rdatasetmethods.

new database methods have been added: locknode, unlocknode,
addglue, expiredata, and deletedata, allowing external functions to
perform functions that previously required internal access to the
database implementation.

database and heap pointers are now stored in the dns_slabheader object
so that header is the only thing that needs to be passed to some
functions; this will simplify moving functions that process slabheaders
out of rbtdb.c so they can be used by other database implementations.
lib/dns/db.c
lib/dns/include/dns/db.h
lib/dns/include/dns/rdataset.h
lib/dns/include/dns/rdataslab.h
lib/dns/include/dns/types.h
lib/dns/rbtdb.c
lib/dns/rbtdb_p.h
lib/dns/rdataset.c
lib/dns/rdataslab.c
lib/ns/query.c
tests/dns/rbtdb_test.c