Lines Matching defs:journal
56 #include <dns/journal.h>
291 char *journal;
420 * Serial number for deferred journal compaction.
579 DNS_ZONEFLG_FIXJOURNAL = 0x00000800U, /*%< journal file had
1343 if (zone->journal != NULL) {
1344 isc_mem_free(zone->mctx, zone->journal);
1346 zone->journal = NULL;
1857 char *journal;
1865 journal = isc_mem_allocate(zone->mctx, len);
1866 strlcpy(journal, zone->masterfile, len);
1867 strlcat(journal, ".jnl", len);
1869 journal = NULL;
1871 result = dns_zone_setstring(zone, &zone->journal, journal);
1872 if (journal != NULL) {
1873 isc_mem_free(zone->mctx, journal);
1885 result = dns_zone_setstring(zone, &zone->journal, myjournal);
1895 return zone->journal;
4337 * Merge it into the current pending journal entry.
4399 * Write all transactions in 'diff' to the zone journal file.
4406 dns_journal_t *journal = NULL;
4413 &journal);
4422 dns_journal_set_sourceserial(journal, *sourceserial);
4425 result = dns_journal_write_transaction(journal, diff);
4431 dns_journal_destroy(&journal);
4666 /* Write changes to journal file. */
4868 * if there happens to be a journal file, we can roll forward from
4881 if (zone->journal != NULL &&
4915 * Check to make sure the journal is up to date, and remove the
4916 * journal file if it isn't, as we wouldn't be able to apply
4919 if (zone->journal != NULL && is_dynamic &&
4923 dns_journal_t *journal = NULL;
4926 result = dns_journal_open(zone->mctx, zone->journal,
4927 DNS_JOURNAL_READ, &journal);
4929 jserial = dns_journal_last_serial(journal);
4930 empty = dns_journal_empty(journal);
4931 dns_journal_destroy(&journal);
4941 "journal file is out of date: "
4942 "removing journal file");
4944 if (remove(zone->journal) < 0 && errno != ENOENT) {
4950 "unable to remove journal "
4952 zone->journal, strbuf);
5118 result = isc_file_getmodtime(zone->journal, &t);
5326 if (zone->journal != NULL) {
5327 zone_saveunique(zone, zone->journal,
7026 /* Update the database and journal with the RRSIG. */
7284 /* Write changes to journal file. */
7643 /* Update the database and journal with the RRSIG. */
9023 /* Write changes to journal file. */
9819 * Write changes to journal file.
10804 /* Write changes to journal file. */
11547 dns_journal_t *journal = NULL;
11560 result = dns_journal_open(zone->mctx, zone->journal, DNS_JOURNAL_READ,
11561 &journal);
11564 "no journal file, but that's OK ");
11568 "journal open failed: %s",
11573 if (dns_journal_empty(journal)) {
11575 "journal empty");
11576 dns_journal_destroy(&journal);
11580 result = dns_journal_rollforward(journal, db, options);
11586 if (dns_journal_recovered(journal)) {
11591 "journal rollforward completed successfully "
11592 "using old journal format: %s",
11597 "journal rollforward completed "
11602 dns_journal_destroy(&journal);
11607 "journal rollforward failed: journal out of sync "
11609 dns_journal_destroy(&journal);
11613 "journal rollforward failed: %s",
11615 dns_journal_destroy(&journal);
11651 zone_debuglog(zone, __func__, 1, "repair full journal");
11653 zone_debuglog(zone, __func__, 1, "target journal size %d",
11656 result = dns_journal_compact(zone->mctx, zone->journal, serial, options,
11787 if (result == ISC_R_SUCCESS && zone->journal != NULL) {
13871 if (zone->journal != NULL) {
13872 result = isc_file_settime(zone->journal, &when);
16422 sync_secure_journal(dns_zone_t *zone, dns_zone_t *raw, dns_journal_t *journal,
16436 CHECK(dns_journal_iter_init(journal, start, end, NULL));
16437 for (result = dns_journal_first_rr(journal); result == ISC_R_SUCCESS;
16438 result = dns_journal_next_rr(journal))
16443 dns_journal_current_rr(journal, &name, &ttl, &rdata);
16467 "corrupt journal file: '%s'\n",
16468 raw->journal);
16859 * by using the raw zone's journal, applying all the deltas
16867 zone->rss_raw->journal,
16870 result = dns_journal_open(zone->mctx, zone->journal,
16883 * We read the secure journal first, if that
16885 * that from the raw journal.
16899 * Try to apply diffs from the raw zone's journal to the secure
16969 zone->rss_raw->journal,
17627 if (zone->db != NULL && zone->journal != NULL &&
17668 zone->journal);
17711 if (dump && zone->journal != NULL) {
17717 * Therefore, the on-disk journal is missing
17725 "removing journal file");
17726 if (remove(zone->journal) < 0 && errno != ENOENT) {
17732 "unable to remove journal "
17734 zone->journal, strbuf);
17949 if (zone->masterfile != NULL || zone->journal != NULL) {
17965 if (zone->journal != NULL) {
17966 result = isc_file_settime(zone->journal, &when);
18050 * Handle any deferred journal compaction.
23544 /* Write changes to journal file. */
23901 * If we changed anything in the zone, write changes to journal file
24416 /* Write changes to journal file. */