mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-08-29 13:38:26 +00:00
Use LOCK_ZONE/UNLOCK_ZONE.
This commit is contained in:
parent
be063aae54
commit
c8af2c78dd
@ -15,7 +15,7 @@
|
|||||||
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/* $Id: zone.c,v 1.390 2003/05/21 14:15:32 marka Exp $ */
|
/* $Id: zone.c,v 1.391 2003/06/06 06:09:39 marka Exp $ */
|
||||||
|
|
||||||
#include <config.h>
|
#include <config.h>
|
||||||
|
|
||||||
@ -1138,14 +1138,14 @@ zone_gotwritehandle(isc_task_t *task, isc_event_t *event) {
|
|||||||
if (result == ISC_R_CANCELED)
|
if (result == ISC_R_CANCELED)
|
||||||
goto fail;
|
goto fail;
|
||||||
|
|
||||||
LOCK(&zone->lock);
|
LOCK_ZONE(zone);
|
||||||
dns_db_currentversion(zone->db, &version);
|
dns_db_currentversion(zone->db, &version);
|
||||||
result = dns_master_dumpinc(zone->mctx, zone->db, version,
|
result = dns_master_dumpinc(zone->mctx, zone->db, version,
|
||||||
&dns_master_style_default,
|
&dns_master_style_default,
|
||||||
zone->masterfile, zone->task,
|
zone->masterfile, zone->task,
|
||||||
dump_done, zone, &zone->dctx);
|
dump_done, zone, &zone->dctx);
|
||||||
dns_db_closeversion(zone->db, &version, ISC_FALSE);
|
dns_db_closeversion(zone->db, &version, ISC_FALSE);
|
||||||
UNLOCK(&zone->lock);
|
UNLOCK_ZONE(zone);
|
||||||
if (result != DNS_R_CONTINUE)
|
if (result != DNS_R_CONTINUE)
|
||||||
goto fail;
|
goto fail;
|
||||||
return;
|
return;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user