Commit bede9e44 authored by Libor Peltan's avatar Libor Peltan Committed by Daniel Salzman

zone: fix expire not to free zone before COW txn commited

parent 9443ce32
......@@ -33,7 +33,9 @@ int event_expire(conf_t *conf, zone_t *zone)
log_zone_info(zone->name, "zone expired");
synchronize_rcu();
knot_sem_wait(&zone->cow_lock);
zone_contents_deep_free(expired);
knot_sem_post(&zone->cow_lock);
zone->zonefile.exists = false;
mem_trim();
......
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