mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-08-30 22:15:20 +00:00
Adjust lock/unlock in zone_rekey()
This commit is contained in:
committed by
Mark Andrews
parent
a6626594aa
commit
aaaa7e67fa
@@ -19514,10 +19514,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);
|
||||
@@ -19639,10 +19640,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);
|
||||
|
||||
/*
|
||||
|
Reference in New Issue
Block a user