Commit Graph
21 Commits
Author SHA1 Message Date
Andreas Gustafsson cd01c9716f Reintroduced separate internal/external reference counts for zones,
reversing part of the changes made on 2000/05/17.  Doing an explicit
zone shutdown on destruction of the zone table caused the zone to
be shut down prematurely on server reload when the zone table was
destroyed but the zone had already been attached to a new zone table.
An external reference count is needed to correctly handle this situation.
2000-05-22 17:23:15 +00:00
Andreas Gustafsson 22608315e8 Fixed multiple shutdown cleanup bugs in the zone object. This
involved extensive restructuring of the reference counting of
zones and related objects.

Zones now attach to their views.  To avoid a circular dependency that
would keep views from ever shutting down, this is done using the new
functions dns_view_weakattach() / dns_view_weakdetach() which
guarantee that the view will not be freed but still allow it
to be shut down.

The zones themselves now only have a single reference count, with
similar "weak" semantics.  Managed zones must now be shut down
explicitly by calling dns_zone_shutdown().  To shut down all
zones in a zone table, call dns_zt_shutdown().

The zone manager is now reference counted, weakly. To shut down the
zone manager, you must explicitly call dns_zonemgr_shutdown().
2000-05-17 19:45:36 +00:00
David Lawrence 1a69a1a78c Megacommit of dozens of files.
Cleanup of redundant/useless header file inclusion.

ISC style lint, primarily for function declarations and standalone
comments -- ie, those that appear on a line without any code, which
should be written as follows:
   /*
    * This is a comment.
    */
2000-05-08 14:38:29 +00:00
David Lawrence 09f22ac5b0 Redundant header work, mostly removing <dns/result.h> from installed
headers and adding it to source files that need it.
2000-05-02 03:54:17 +00:00
Bob Halley 0a09237aa0 add noexact matching option 2000-04-19 18:21:24 +00:00
David Lawrence b2e0809295 include dns/rbt.h 2000-04-12 21:32:13 +00:00
Michael Graff 4195904998 s/DNS_R_/ISC_R_/ change for some codes. 2000-04-06 22:03:35 +00:00
Bob Halley 7d32c065c7 update copyright 2000-02-03 23:50:32 +00:00
Andreas Gustafsson fbb5a4f316 don't write to freed memory 2000-02-01 01:27:30 +00:00
Andreas Gustafsson c9939598c6 dn_zt_apply() returned ISC_R_NOTFOUND when the zone table was
empty; it now returns ISC_R_SUCCESS
2000-01-24 19:11:21 +00:00
Andreas Gustafsson 036df8a12d exit server if loading a zone fails during initial startup
(but not if it fails during a subsequent reload)
2000-01-22 01:36:34 +00:00
Andreas Gustafsson 564e88f79e #include <dns/zone.h> in zt.c, not zt.h 2000-01-20 00:45:56 +00:00
Michael Graff 3ddd814a97 dns_result_t is no more. s/dns_result_t/isc_result_t/ -- more later, when I need a break. 1999-12-23 00:09:04 +00:00
Michael Graff 440be4c866 move util.h to <isc/util.h> 1999-12-16 22:24:22 +00:00
Mark Andrews 7d9cb86e80 Add stop on error flag to dns_zt_apply. 1999-10-26 02:29:49 +00:00
Mark Andrews 28e9bc1bd2 add dns_zt_apply() 1999-10-25 13:34:17 +00:00
Mark Andrews f182ffaba7 dns_getname_origin nor returns (dns_name_t *) again. 1999-10-14 00:47:01 +00:00
Bob Halley 2edd9e49c7 Fix race problems in mount and find.
Convert to rwlocks.
Misc. cleanups.
1999-10-13 18:48:32 +00:00
Bob Halley 4a80a00550 Latest from ~marka/bind9. 1999-10-13 18:19:56 +00:00
Mark Andrews a86ce0b97d Adjust function dns_zt_*() names to remove _zone, lookup -> find.
Add thread support.
1999-09-17 10:00:14 +00:00
Mark Andrews 263f8b87e9 Initial implementation.
*not* yet thread safe.
1999-09-15 15:11:42 +00:00