"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "src/knot/nameserver/ixfr.c" between
knot-2.9.1.tar.xz and knot-2.9.2.tar.xz

About: Knot DNS is a high-performance authoritative-only DNS server (supports zone transfers, dynamic updates and DNSSEC).

ixfr.c  (knot-2.9.1.tar.xz):ixfr.c  (knot-2.9.2.tar.xz)
skipping to change at line 109 skipping to change at line 109
/* Compare serials. */ /* Compare serials. */
uint32_t serial_to = zone_contents_serial(contents), j_serial_to; uint32_t serial_to = zone_contents_serial(contents), j_serial_to;
uint32_t serial_from = knot_soa_serial(their_soa->rrs.rdata); uint32_t serial_from = knot_soa_serial(their_soa->rrs.rdata);
if (serial_compare(serial_to, serial_from) & SERIAL_MASK_LEQ) { /* We hav e older/same age zone. */ if (serial_compare(serial_to, serial_from) & SERIAL_MASK_LEQ) { /* We hav e older/same age zone. */
return KNOT_EUPTODATE; return KNOT_EUPTODATE;
} }
zone_journal_t j = zone_journal(zone); zone_journal_t j = zone_journal(zone);
bool j_exists = false; bool j_exists = false;
int ret = journal_info(j, &j_exists, NULL, &j_serial_to, NULL, NULL, NULL , NULL); int ret = journal_info(j, &j_exists, NULL, NULL, &j_serial_to, NULL, NULL , NULL, NULL);
if (ret != KNOT_EOK) { if (ret != KNOT_EOK) {
return ret; return ret;
} else if (!j_exists) { } else if (!j_exists) {
return KNOT_ENOENT; return KNOT_ENOENT;
} }
// please note that the journal serial_to might differ from zone SOA seri al // please note that the journal serial_to might differ from zone SOA seri al
// it is beacuse RCU lock is made at different moment than LMDB txn begin // it is beacuse RCU lock is made at different moment than LMDB txn begin
return journal_read_begin(zone_journal(zone), false, serial_from, journal _read); return journal_read_begin(zone_journal(zone), false, serial_from, journal _read);
} }
 End of changes. 1 change blocks. 
1 lines changed or deleted 1 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)