Lines Matching defs:journal
57 #include <dns/journal.h>
286 char *journal;
418 * Serial number for deferred journal compaction.
577 DNS_ZONEFLG_FIXJOURNAL = 0x00000800U, /*%< journal file had
1351 if (zone->journal != NULL) {
1352 isc_mem_free(zone->mctx, zone->journal);
1354 zone->journal = NULL;
1865 char *journal;
1873 journal = isc_mem_allocate(zone->mctx, len);
1874 strlcpy(journal, zone->masterfile, len);
1875 strlcat(journal, ".jnl", len);
1877 journal = NULL;
1879 result = dns_zone_setstring(zone, &zone->journal, journal);
1880 if (journal != NULL) {
1881 isc_mem_free(zone->mctx, journal);
1893 result = dns_zone_setstring(zone, &zone->journal, myjournal);
1903 return zone->journal;
4496 * Merge it into the current pending journal entry.
4558 * Write all transactions in 'diff' to the zone journal file.
4565 dns_journal_t *journal = NULL;
4572 &journal);
4581 dns_journal_set_sourceserial(journal, *sourceserial);
4584 result = dns_journal_write_transaction(journal, diff);
4590 dns_journal_destroy(&journal);
4825 /* Write changes to journal file. */
5027 * if there happens to be a journal file, we can roll forward from
5040 if (zone->journal != NULL &&
5074 * Check to make sure the journal is up to date, and remove the
5075 * journal file if it isn't, as we wouldn't be able to apply
5078 if (zone->journal != NULL && is_dynamic &&
5082 dns_journal_t *journal = NULL;
5085 result = dns_journal_open(zone->mctx, zone->journal,
5086 DNS_JOURNAL_READ, &journal);
5088 jserial = dns_journal_last_serial(journal);
5089 empty = dns_journal_empty(journal);
5090 dns_journal_destroy(&journal);
5100 "journal file is out of date: "
5101 "removing journal file");
5103 if (remove(zone->journal) < 0 && errno != ENOENT) {
5109 "unable to remove journal "
5111 zone->journal, strbuf);
5277 result = isc_file_getmodtime(zone->journal, &t);
5485 if (zone->journal != NULL) {
5486 zone_saveunique(zone, zone->journal,
7199 /* Update the database and journal with the RRSIG. */
7455 /* Write changes to journal file. */
7844 /* Update the database and journal with the RRSIG. */
9173 /* Write changes to journal file. */
9969 * Write changes to journal file.
10953 /* Write changes to journal file. */
11708 dns_journal_t *journal = NULL;
11721 result = dns_journal_open(zone->mctx, zone->journal, DNS_JOURNAL_READ,
11722 &journal);
11725 "no journal file, but that's OK ");
11729 "journal open failed: %s",
11734 if (dns_journal_empty(journal)) {
11736 "journal empty");
11737 dns_journal_destroy(&journal);
11741 result = dns_journal_rollforward(journal, db, options);
11747 if (dns_journal_recovered(journal)) {
11752 "journal rollforward completed successfully "
11753 "using old journal format: %s",
11758 "journal rollforward completed "
11763 dns_journal_destroy(&journal);
11768 "journal rollforward failed: journal out of sync "
11770 dns_journal_destroy(&journal);
11774 "journal rollforward failed: %s",
11776 dns_journal_destroy(&journal);
11812 zone_debuglog(zone, __func__, 1, "repair full journal");
11814 zone_debuglog(zone, __func__, 1, "target journal size %d",
11817 result = dns_journal_compact(zone->mctx, zone->journal, serial, options,
11948 if (result == ISC_R_SUCCESS && zone->journal != NULL) {
14069 if (zone->journal != NULL) {
14070 result = isc_file_settime(zone->journal, &when);
16664 sync_secure_journal(dns_zone_t *zone, dns_zone_t *raw, dns_journal_t *journal,
16678 CHECK(dns_journal_iter_init(journal, start, end, NULL));
16679 for (result = dns_journal_first_rr(journal); result == ISC_R_SUCCESS;
16680 result = dns_journal_next_rr(journal))
16685 dns_journal_current_rr(journal, &name, &ttl, &rdata);
16709 "corrupt journal file: '%s'\n",
16710 raw->journal);
17112 * by using the raw zone's journal, applying all the deltas
17120 zone->rss_raw->journal,
17123 result = dns_journal_open(zone->mctx, zone->journal,
17136 * We read the secure journal first, if that
17138 * that from the raw journal.
17152 * Try to apply diffs from the raw zone's journal to the secure
17222 zone->rss_raw->journal,
17864 if (zone->db != NULL && zone->journal != NULL &&
17905 zone->journal);
17948 if (dump && zone->journal != NULL) {
17954 * Therefore, the on-disk journal is missing
17962 "removing journal file");
17963 if (remove(zone->journal) < 0 && errno != ENOENT) {
17969 "unable to remove journal "
17971 zone->journal, strbuf);
18186 if (zone->masterfile != NULL || zone->journal != NULL) {
18202 if (zone->journal != NULL) {
18203 result = isc_file_settime(zone->journal, &when);
18287 * Handle any deferred journal compaction.
23827 /* Write changes to journal file. */
24184 * If we changed anything in the zone, write changes to journal file
24699 /* Write changes to journal file. */