+1252. [func] Report the current serial with periodic commits when
+ rolling forward the journal.
+
1251. [func] Generate DNSSEC wildcard proofs.
1250. [bug] When processing events (non-threaded) only allow
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
-/* $Id: journal.c,v 1.83 2001/11/30 01:59:09 gson Exp $ */
+/* $Id: journal.c,v 1.84 2002/07/22 02:06:04 marka Exp $ */
#include <config.h>
rdata = NULL;
dns_journal_current_rr(j, &name, &ttl, &rdata);
- if (rdata->type == dns_rdatatype_soa)
+ if (rdata->type == dns_rdatatype_soa) {
n_soa++;
+ if (n_soa == 2)
+ db_serial = j->it.current_serial;
+ }
if (n_soa == 3)
n_soa = 1;
if (++n_put > 100) {
isc_log_write(JOURNAL_DEBUG_LOGARGS(3),
- "applying diff to database");
+ "applying diff to database (%u)",
+ db_serial);
(void)dns_diff_print(&diff, NULL);
CHECK(dns_diff_apply(&diff, db, ver));
dns_diff_clear(&diff);
if (n_put != 0) {
isc_log_write(JOURNAL_DEBUG_LOGARGS(3),
- "applying final diff to database");
+ "applying final diff to database (%u)",
+ db_serial);
(void)dns_diff_print(&diff, NULL);
CHECK(dns_diff_apply(&diff, db, ver));
dns_diff_clear(&diff);