From e90c481204c8f7049db7be959a82b41ac802f6ca Mon Sep 17 00:00:00 2001 From: solidcc2 Date: Thu, 12 Dec 2024 17:32:50 +0800 Subject: fix: zone hang if last zone-reload oom --- src/knot/zone/zonedb-load.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/knot/zone/zonedb-load.c b/src/knot/zone/zonedb-load.c index abe2dc709..2643d0cd0 100644 --- a/src/knot/zone/zonedb-load.c +++ b/src/knot/zone/zonedb-load.c @@ -652,6 +652,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); -- cgit v1.2.3