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

load: fix detection whether zone has to be stored to journal

parent 7beeae41
No related branches found
No related tags found
1 merge request!1240Zone load fixes
......@@ -70,10 +70,16 @@ int event_load(conf_t *conf, zone_t *zone)
((load_from == JOURNAL_CONTENT_ALL && zf_from != ZONEFILE_LOAD_WHOLE) ||
zone->cat_members != NULL)) {
ret = zone_load_from_journal(conf, zone, &journal_conts);
if (ret != KNOT_EOK && ret != KNOT_ENOENT) {
switch (ret) {
case KNOT_EOK:
zone_in_journal_exists = true;
break;
case KNOT_ENOENT:
zone_in_journal_exists = false;
break;
default:
goto cleanup;
}
zone_in_journal_exists = true;
} else {
zone_in_journal_exists = zone_journal_has_zij(zone);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment