Commit 624d44e8 authored by Daniel Salzman's avatar Daniel Salzman

events: rename reload event to load event

parent 4f8c02ec
......@@ -219,7 +219,7 @@ static int remote_zone_reload(zone_t *zone, remote_cmdargs_t *a)
return KNOT_EOK;
}
zone_events_schedule(zone, ZONE_EVENT_RELOAD, ZONE_EVENT_NOW);
zone_events_schedule(zone, ZONE_EVENT_LOAD, ZONE_EVENT_NOW);
return KNOT_EOK;
}
......
......@@ -43,7 +43,7 @@ typedef struct event_info {
} event_info_t;
static const event_info_t EVENT_INFO[] = {
{ ZONE_EVENT_RELOAD, event_reload, "reload" },
{ ZONE_EVENT_LOAD, event_load, "load" },
{ ZONE_EVENT_REFRESH, event_refresh, "refresh" },
{ ZONE_EVENT_XFER, event_xfer, "transfer" },
{ ZONE_EVENT_UPDATE, event_update, "update" },
......
......@@ -33,7 +33,7 @@ struct server;
typedef enum zone_event_type {
ZONE_EVENT_INVALID = -1,
// supported event types
ZONE_EVENT_RELOAD = 0,
ZONE_EVENT_LOAD = 0,
ZONE_EVENT_REFRESH,
ZONE_EVENT_XFER,
ZONE_EVENT_UPDATE,
......
......@@ -311,7 +311,7 @@ static void start_expire_timer(zone_t *zone, const knot_rdataset_t *soa)
/* -- zone events handling callbacks --------------------------------------- */
int event_reload(zone_t *zone)
int event_load(zone_t *zone)
{
assert(zone);
......
......@@ -18,8 +18,8 @@
#include "knot/zone/events/events.h"
/*! \brief Reloads the potentially changed zone. */
int event_reload(zone_t *zone);
/*! \brief Loads or reloads potentially changed zone. */
int event_load(zone_t *zone);
/*! \brief Sends a SOA query to master. */
int event_refresh(zone_t *zone);
/*! \brief Initiates transfer with master. */
......
......@@ -151,7 +151,7 @@ static zone_t *create_zone_reload(conf_t *conf, const knot_dname_t *name,
switch (zstatus) {
case ZONE_STATUS_FOUND_UPDATED:
/* Enqueueing makes the first zone load waitable. */
zone_events_enqueue(zone, ZONE_EVENT_RELOAD);
zone_events_enqueue(zone, ZONE_EVENT_LOAD);
/* Replan DDNS processing if there are pending updates. */
zone_events_replan_ddns(zone, old_zone);
break;
......@@ -229,7 +229,7 @@ static zone_t *create_zone_new(conf_t * conf, const knot_dname_t *name,
switch (zstatus) {
case ZONE_STATUS_FOUND_NEW:
/* Enqueueing makes the first zone load waitable. */
zone_events_enqueue(zone, ZONE_EVENT_RELOAD);
zone_events_enqueue(zone, ZONE_EVENT_LOAD);
break;
case ZONE_STATUS_BOOSTRAP:
if (zone_events_get_time(zone, ZONE_EVENT_REFRESH) == 0) {
......
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