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 13, 2024
1 parent f4ce894 commit cf58751
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 @@ -698,6 +698,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 cf58751

Please sign in to comment.