Lines Matching defs:diff

23 #include <dns/diff.h>
230 dns_diff_t *diff;
404 * update in 'diff'.
408 * ownership has been transferred to the diff.
412 dns_diff_t *diff)
418 * Create a singleton diff.
420 dns_diff_init(diff->mctx, &temp_diff);
436 dns_diff_appendminimal(diff, tuple);
446 * update in 'diff'.
453 dns_diff_t *diff)
459 CHECK(do_one_tuple(&t, db, ver, diff));
464 dns_diff_clear(diff);
469 update_one_rr(dns_db_t *db, dns_dbversion_t *ver, dns_diff_t *diff,
475 result = dns_difftuple_create(diff->mctx, op,
479 return (do_one_tuple(&tuple, db, ver, diff));
931 * 'name' and 'rdata' to 'diff'.
934 temp_append(dns_diff_t *diff, dns_name_t *name, dns_rdata_t *rdata) {
938 REQUIRE(DNS_DIFF_VALID(diff));
939 CHECK(dns_difftuple_create(diff->mctx, DNS_DIFFOP_EXISTS,
941 ISC_LIST_APPEND(diff->tuples, tuple, link);
1153 dns_diff_t *diff;
1289 result = update_one_rr(ctx->db, ctx->ver, ctx->diff,
1303 * deletions in 'diff'.
1308 dns_rdata_t *update_rr, dns_diff_t *diff)
1314 ctx.diff = diff;
1420 * change in 'diff'.
1430 update_soa_serial(dns_db_t *db, dns_dbversion_t *ver, dns_diff_t *diff,
1445 CHECK(do_one_tuple(&deltuple, db, ver, diff));
1446 CHECK(do_one_tuple(&addtuple, db, ver, diff));
1652 remove_orphaned_ds(dns_db_t *db, dns_dbversion_t *newver, dns_diff_t *diff) {
1658 dns_diff_init(diff->mctx, &temp_diff);
1660 for (tupple = ISC_LIST_HEAD(diff->tuples);
1683 dns_diff_appendminimal(diff, &tupple);
1693 dns_db_t *db, dns_dbversion_t *newver, dns_diff_t *diff)
1716 for (t = ISC_LIST_HEAD(diff->tuples);
1924 dns_dbversion_t *ver, dns_diff_t *diff)
1933 for (tuple = ISC_LIST_HEAD(diff->tuples);
2001 dns_dbversion_t *ver, dns_diff_t *diff)
2018 dns_diff_init(diff->mctx, &temp_diff);
2023 for (tuple = ISC_LIST_HEAD(diff->tuples);
2032 ISC_LIST_UNLINK(diff->tuples, tuple, link);
2065 ISC_LIST_APPEND(diff->tuples, next,
2081 * unlinking then complete moving the pair to 'diff'.
2085 ISC_LIST_APPEND(diff->tuples, tuple, link);
2112 CHECK(dns_difftuple_create(diff->mctx, op, name,
2115 CHECK(do_one_tuple(&newtuple, db, ver, diff));
2117 dns_diff_appendminimal(diff, &tuple);
2160 ISC_LIST_APPEND(diff->tuples, next, link);
2188 CHECK(dns_difftuple_create(diff->mctx,
2192 CHECK(do_one_tuple(&newtuple, db, ver, diff));
2204 CHECK(dns_difftuple_create(diff->mctx,
2208 CHECK(do_one_tuple(&newtuple, db, ver, diff));
2216 CHECK(dns_difftuple_create(diff->mctx, DNS_DIFFOP_DEL,
2219 CHECK(do_one_tuple(&newtuple, db, ver, diff));
2221 dns_diff_appendminimal(diff, &tuple);
2248 CHECK(dns_difftuple_create(diff->mctx, DNS_DIFFOP_ADD,
2250 CHECK(do_one_tuple(&newtuple, db, ver, diff));
2252 CHECK(dns_difftuple_create(diff->mctx, DNS_DIFFOP_ADD, name,
2254 CHECK(do_one_tuple(&newtuple, db, ver, diff));
2256 dns_diff_appendminimal(diff, &tuple);
2268 dns_dbversion_t *ver, dns_diff_t *diff)
2274 isc_mem_t *mctx = diff->mctx;
2285 for (tuple = ISC_LIST_HEAD(diff->tuples);
2304 ISC_LIST_UNLINK(diff->tuples, tuple, link);
2331 dns_dbversion_t *ver, dns_diff_t *diff)
2344 dns_diff_init(diff->mctx, &temp_diff);
2349 for (tuple = ISC_LIST_HEAD(diff->tuples);
2357 ISC_LIST_UNLINK(diff->tuples, tuple, link);
2382 ISC_LIST_APPEND(diff->tuples, next,
2398 * unlinking then complete moving the pair to 'diff'.
2402 ISC_LIST_APPEND(diff->tuples, tuple, link);
2415 ISC_LIST_APPEND(diff->tuples, tuple, link);
2441 CHECK(dns_difftuple_create(diff->mctx, DNS_DIFFOP_ADD,
2443 CHECK(do_one_tuple(&newtuple, db, ver, diff));
2452 CHECK(dns_difftuple_create(diff->mctx, DNS_DIFFOP_DEL,
2454 CHECK(do_one_tuple(&newtuple, db, ver, diff));
2487 dns_diff_t diff; /* Pending updates. */
2509 dns_diff_init(mctx, &diff);
2951 ctx.diff = &diff;
2968 &diff);
2972 &diff);
2979 CHECK(update_one_rr(db, ver, &diff,
3001 &rdata, &diff));
3006 &rdata, &diff));
3033 &diff));
3072 covers, &rdata, &diff));
3083 if (! ISC_LIST_EMPTY(diff.tuples))
3084 CHECK(check_dnssec(client, zone, db, ver, &diff));
3086 if (! ISC_LIST_EMPTY(diff.tuples)) {
3097 if (! ISC_LIST_EMPTY(diff.tuples)) {
3116 if (! ISC_LIST_EMPTY(diff.tuples)) {
3126 CHECK(update_soa_serial(db, ver, &diff, mctx,
3130 CHECK(check_mx(client, zone, db, ver, &diff));
3132 CHECK(remove_orphaned_ds(db, ver, &diff));
3154 CHECK(rollback_private(db, privatetype, ver, &diff));
3156 CHECK(add_signing_records(db, privatetype, ver, &diff));
3158 CHECK(add_nsec3param_records(client, zone, db, ver, &diff));
3168 ISC_TRUE, &diff));
3177 ver, &diff, interval);
3213 result = dns_journal_write_transaction(journal, &diff);
3249 for (tuple = ISC_LIST_HEAD(diff.tuples);
3284 for (tuple = ISC_LIST_HEAD(diff.tuples);
3328 dns_diff_clear(&diff);