Skip to content

Commit

Permalink
Write changes to zone to database
Browse files Browse the repository at this point in the history
  • Loading branch information
yschaeff committed Jul 4, 2016
1 parent ef3d833 commit 69f6e9b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions enforcer/src/enforcer/enforce_task.c
Expand Up @@ -125,6 +125,8 @@ perform_enforce(int sockfd, engine_type *engine, char const *zonename,
schedule_task(engine->taskq, retract);
}

if (zone_updated)
zone_db_update(zone);
zone_db_free(zone);
return t_next;
}
Expand Down
2 changes: 1 addition & 1 deletion enforcer/src/enforcer/enforce_task.h
Expand Up @@ -39,7 +39,7 @@ task_t *enforce_task(engine_type *engine, char const *owner);
time_t enforce_task_perform(char const *owner, void *context,
db_connection_t *dbconn);

//YBS DOC
/* Schedule enforce tasks for *now* for ALL zones. */
void enforce_task_flush_all(engine_type *engine, db_connection_t *dbconn);

#endif

0 comments on commit 69f6e9b

Please sign in to comment.