mirror of
https://github.com/isc-projects/bind9.git
synced 2026-02-25 10:59:35 -05:00
"max-journal-size" is set by default to twice the size of the zone database. however, the calculation of zone database size was flawed. - change the size calculations in dns_db_getsize() to more accurately represent the space needed for a journal file or *XFR message to contain the data in the database. previously we returned the sizes of all rdataslabs, including header overhead and offset tables, which resulted in the database size being reported as much larger than the equivalent journal transactions would have been. - map files caused a particular problem here: the full name can't be determined from the node while a file is being deserialized, because the uppernode pointers aren't set yet. so we store "full name length" in the dns_rbtnode structure while serializing, and clear it after deserialization is complete.
16 lines
829 B
Text
16 lines
829 B
Text
# This value should be increased whenever changing the structure of
|
|
# any object that will appear in a type 'map' master file (which
|
|
# contains a working memory image of an RBT database), as loading
|
|
# an incorrect memory image produces an inconsistent and probably
|
|
# nonfunctional database. These structures include but are not
|
|
# necessarily limited to dns_masterrawheader, rbtdb_file_header,
|
|
# rbt_file_header, dns_rbtdb, dns_rbt, dns_rbtnode, rdatasetheader.
|
|
#
|
|
# Err on the side of caution: if anything in the RBTDB is changed,
|
|
# bump the value. Making map files unreadable protects the system
|
|
# from instability; it's a feature not a bug.
|
|
#
|
|
# Whenever releasing a new major release of BIND9, set this value
|
|
# back to 1.0 when releasing the first alpha. Map files are *never*
|
|
# compatible across major releases.
|
|
MAPAPI=2.0
|