mirror of
https://github.com/isc-projects/bind9.git
synced 2026-06-11 07:30:01 -04:00
Adjust lock/unlock in zone_rekey()
(cherry picked from commit aaaa7e67fa)
This commit is contained in:
parent
0c861a7ba1
commit
da0faf334d
1 changed files with 2 additions and 3 deletions
|
|
@ -18736,10 +18736,11 @@ zone_rekey(dns_zone_t *zone) {
|
|||
|
||||
dns_db_closeversion(db, &ver, true);
|
||||
|
||||
LOCK_ZONE(zone);
|
||||
|
||||
if (commit) {
|
||||
dns_difftuple_t *tuple;
|
||||
|
||||
LOCK_ZONE(zone);
|
||||
DNS_ZONE_SETFLAG(zone, DNS_ZONEFLG_NEEDNOTIFY);
|
||||
|
||||
zone_needdump(zone, DNS_DUMP_DELAY);
|
||||
|
|
@ -18870,10 +18871,8 @@ zone_rekey(dns_zone_t *zone) {
|
|||
* Schedule the next resigning event
|
||||
*/
|
||||
set_resigntime(zone);
|
||||
UNLOCK_ZONE(zone);
|
||||
}
|
||||
|
||||
LOCK_ZONE(zone);
|
||||
isc_time_settoepoch(&zone->refreshkeytime);
|
||||
|
||||
/*
|
||||
|
|
|
|||
Loading…
Reference in a new issue