Skip to content
Snippets Groups Projects
Commit e16594ba authored by Daniel Salzman's avatar Daniel Salzman
Browse files

load: move journal specific log to a better place

parent 2958f578
Branches
Tags
No related merge requests found
......@@ -64,13 +64,6 @@ int event_load(conf_t *conf, zone_t *zone)
/*! \todo issue #242 dnssec signing should occur in the special event */
ret = zone_load_post(conf, zone, contents, &dnssec_refresh);
if (ret != KNOT_EOK) {
if (ret == KNOT_ESPACE) {
log_zone_error(zone->name, "journal size is too small "
"to fit the changes");
} else {
log_zone_error(zone->name, "failed to store changes into "
"journal (%s)", knot_strerror(ret));
}
goto fail;
}
......
......@@ -219,6 +219,13 @@ int zone_load_post(conf_t *conf, zone_t *zone, zone_contents_t *contents,
/* Write changes (DNSSEC, diff, or both) to journal if all went well. */
if (!changeset_empty(&change)) {
ret = zone_change_store(conf, zone, &change);
if (ret == KNOT_ESPACE) {
log_zone_error(zone->name, "journal size is too small "
"to fit the changes");
} else {
log_zone_error(zone->name, "failed to store changes into "
"journal (%s)", knot_strerror(ret));
}
}
changeset_clear(&change);
......
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