Commit 47712a78 authored by Daniel Salzman's avatar Daniel Salzman
Browse files

zone: rewrite disabled zonefile synchronization check

parent a9754cbe
......@@ -317,13 +317,10 @@ int zone_flush_journal(zone_t *zone)
/* Check for disabled zonefile synchronization. */
conf_val_t val = conf_zone_get(conf(), C_ZONEFILE_SYNC, zone->name);
if (conf_int(&val) < 0) {
if (zone->flags & ZONE_FORCE_FLUSH) {
zone->flags &= ~ZONE_FORCE_FLUSH;
} else {
return KNOT_EOK;
}
if (conf_int(&val) < 0 && (zone->flags & ZONE_FORCE_FLUSH) == 0) {
return KNOT_EOK;
}
zone->flags &= ~ZONE_FORCE_FLUSH;
/* Check for difference against zonefile serial. */
zone_contents_t *contents = zone->contents;
......
Markdown is supported
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