Skip to content

Commit

Permalink
fix: zone hang if last zone-reload oom
Browse files Browse the repository at this point in the history
  • Loading branch information
solidcc2 committed Dec 12, 2024
1 parent 462736f commit 57d0e3f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/knot/zone/zonedb-load.c
Original file line number Diff line number Diff line change
Expand Up @@ -694,6 +694,7 @@ int zone_reload_modules(conf_t *conf, server_t *server, const knot_dname_t *zone

zone_t *newzone = create_zone(conf, zone_name, server, *zone);
if (newzone == NULL) {
knot_sem_post(&(*zone)->cow_lock);
return KNOT_ENOMEM;
}
knot_sem_wait(&newzone->cow_lock);
Expand Down

0 comments on commit 57d0e3f

Please sign in to comment.