Skip to content
Snippets Groups Projects
Commit 93ee8b2c authored by Libor Peltan's avatar Libor Peltan
Browse files

events: update: removed useless re-schedule attempt

...in case when update is re-scheduled by zone_update_enqueue()
parent b3c403c5
No related branches found
No related tags found
No related merge requests found
......@@ -33,18 +33,5 @@ int event_update(conf_t *conf, zone_t *zone)
/* Trim extra heap. */
mem_trim();
/* Replan event if next update waiting. */
pthread_mutex_lock(&zone->ddns_lock);
const bool empty = EMPTY_LIST(zone->ddns_queue);
pthread_mutex_unlock(&zone->ddns_lock);
if (!empty) {
// TODO: Race condition? What if the update was received after
// checking when this event was still running.
zone_events_schedule_now(zone, ZONE_EVENT_UPDATE);
}
return KNOT_EOK;
}
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