Commit dfb4f030 authored by Jan Včelák's avatar Jan Včelák 🚀

IXFR: log serial change for finished incoming transfer

close #443
parent 01ccb24e
......@@ -402,17 +402,19 @@ static int ixfrin_finalize(struct answer_data *adata)
zone_contents_t *old_contents = zone_switch_contents(ixfr->zone, new_contents);
ixfr->zone->flags &= ~ZONE_EXPIRED;
synchronize_rcu();
update_free_zone(&old_contents);
updates_cleanup(&ixfr->changesets);
struct timeval now = {0};
gettimeofday(&now, NULL);
IXFRIN_LOG(LOG_INFO,
"finished, %.02f seconds, %u messages, %u bytes",
IXFRIN_LOG(LOG_INFO, "finished, "
"serial %u -> %u, %.02f seconds, %u messages, %u bytes",
zone_contents_serial(old_contents),
zone_contents_serial(new_contents),
time_diff(&ixfr->proc.tstamp, &now) / 1000.0,
ixfr->proc.npkts, ixfr->proc.nbytes);
update_free_zone(&old_contents);
updates_cleanup(&ixfr->changesets);
return KNOT_EOK;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment