From c9a8413dcb192d5f8b50b7edda9f3dae93b8c81c Mon Sep 17 00:00:00 2001 From: Bob Halley Date: Tue, 13 Apr 1999 01:54:02 +0000 Subject: [PATCH] Require that only the last reference of a writable version may be committed. --- lib/dns/include/dns/db.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/dns/include/dns/db.h b/lib/dns/include/dns/db.h index d6dbe768fd..11263db23f 100644 --- a/lib/dns/include/dns/db.h +++ b/lib/dns/include/dns/db.h @@ -364,6 +364,10 @@ dns_db_closeversion(dns_db_t *db, dns_dbversion_t **versionp, * * '*versionp' refers to a valid version. * + * If committing a writable version, then there must be no other + * outstanding references to the version (e.g. an active rdataset + * iterator). + * * Ensures: * * *versionp == NULL