Use dns_zone_detach only, it would call it once all references are
removed. Would avoid removing such zone before other users stop using
it. Relies on zone_shutdown internal bind asynchronous call to release
that zone after all users detached from it.
Attempts to fix an issue reported in bug https://bugzilla.redhat.com/show_bug.cgi?id=2101712
dns_zonemgr_releasezone should be called only when all users detached from the zone. It would call releasezone asynchronously from https://gitlab.isc.org/isc-projects/bind9/-/blob/main/lib/dns/zone.c#L15028, I think it is not required to call it explicitly and so early.
Use dns_zone_detach only, it would call it once all references are
removed. Would avoid removing such zone before other users stop using
it. Relies on zone_shutdown internal bind asynchronous call to release
that zone after all users detached from it.
Attempts to fix an issue reported in bug https://bugzilla.redhat.com/show_bug.cgi?id=2101712
dns_zonemgr_releasezone should be called only when all users detached from the zone. It would call releasezone asynchronously from https://gitlab.isc.org/isc-projects/bind9/-/blob/main/lib/dns/zone.c#L15028, I think it is not required to call it explicitly and so early.