summaryrefslogtreecommitdiff
path: root/usr.sbin/nsd/udb.h
diff options
context:
space:
mode:
authorStuart Henderson <sthen@cvs.openbsd.org>2014-03-14 16:01:57 +0000
committerStuart Henderson <sthen@cvs.openbsd.org>2014-03-14 16:01:57 +0000
commit484d8522231c1b7bacc638b0b84d502e4231886a (patch)
tree9ef06b5e7ac887a9a14c095744236d7082b2ed61 /usr.sbin/nsd/udb.h
parent6ad247cd626ea34f6cb942bf33053b788613b984 (diff)
Update to NSD 4.0.3, main change is to improve/fix nsd.db database
corruption checks and avoid some causes of corruption. More details at http://article.gmane.org/gmane.network.dns.nsd.general/1687
Diffstat (limited to 'usr.sbin/nsd/udb.h')
-rw-r--r--usr.sbin/nsd/udb.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/usr.sbin/nsd/udb.h b/usr.sbin/nsd/udb.h
index de7985275c2..691b78c817f 100644
--- a/usr.sbin/nsd/udb.h
+++ b/usr.sbin/nsd/udb.h
@@ -40,10 +40,13 @@
typedef struct udb_base udb_base;
typedef struct udb_alloc udb_alloc;
+/** these checks are very slow, disabled by default */
+#if 0
/** perform extra checks (when --enable-checking is used) */
#ifndef NDEBUG
#define UDB_CHECK 1
#endif
+#endif
/** pointers are stored like this */
typedef uint64_t udb_void;
@@ -141,7 +144,7 @@ struct udb_glob_d {
uint64_t hsize;
/** version number of this file */
uint8_t version;
- /** was the file not cleanly closed, 0 is ok */
+ /** was the file cleanly closed, 0 is not clean, 1 is clean */
uint8_t clean_close;
/** an allocation operation was in progress, file needs to be salvaged
* type enum udb_dirty_alloc */