]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
Use LOCK_ZONE/UNLOCK_ZONE.
authorMark Andrews <marka@isc.org>
Fri, 6 Jun 2003 06:09:39 +0000 (06:09 +0000)
committerMark Andrews <marka@isc.org>
Fri, 6 Jun 2003 06:09:39 +0000 (06:09 +0000)
lib/dns/zone.c

index c08ba48dc40b8b444046859b8affa9370eb1603b..ab09bb8d44ce1c6b60ddc5a89833d837b1e78841 100644 (file)
@@ -15,7 +15,7 @@
  * 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>
 
@@ -1138,14 +1138,14 @@ zone_gotwritehandle(isc_task_t *task, isc_event_t *event) {
        if (result == ISC_R_CANCELED)
                goto fail;
 
-       LOCK(&zone->lock);
+       LOCK_ZONE(zone);
        dns_db_currentversion(zone->db, &version);
        result = dns_master_dumpinc(zone->mctx, zone->db, version,
                                    &dns_master_style_default,
                                    zone->masterfile, zone->task,
                                    dump_done, zone, &zone->dctx);
        dns_db_closeversion(zone->db, &version, ISC_FALSE);
-       UNLOCK(&zone->lock);
+       UNLOCK_ZONE(zone);
        if (result != DNS_R_CONTINUE)
                goto fail;
        return;