Skip to content
Snippets Groups Projects
Commit bede9e44 authored by Libor Peltan's avatar Libor Peltan Committed by Daniel Salzman
Browse files

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

parent 9443ce32
No related branches found
No related tags found
1 merge request!988Implementation of COW trie for zone updates
......@@ -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();
......
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