+1061. [bug] If periodic cache cleaning happened to start
+ while cleaning due to reaching the configured
+ maximum cache size was in progress, the server
+ could catch an assertion failure. [RT #1912]
+
1057. [bug] Reloading the server after adding a "file" clause
to a zone statement could cause the server to
crash due to a typo in change 1016.
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
-/* $Id: cache.c,v 1.45 2001/07/02 20:44:30 gson Exp $ */
+/* $Id: cache.c,v 1.45.2.1 2001/10/19 00:22:26 marka Exp $ */
#include <config.h>
INSIST(task == cleaner->task);
INSIST(event->ev_type == ISC_TIMEREVENT_TICK);
- if (cleaner->state == cleaner_s_idle) {
+ if (cleaner->state == cleaner_s_idle)
begin_cleaning(cleaner);
- isc_event_free(&event);
- } else
- /*
- * incremental_cleaning_action() takes responsibility
- * for freeing or preserving the event.
- */
- incremental_cleaning_action(task, event);
+ isc_event_free(&event);
}
/*
UNUSED(task);
INSIST(task == cleaner->task);
- INSIST(event->ev_type == DNS_EVENT_CACHECLEAN ||
- event->ev_type == ISC_TIMEREVENT_TICK);
+ INSIST(event->ev_type == DNS_EVENT_CACHECLEAN);
if (cleaner->state == cleaner_s_done) {
cleaner->state = cleaner_s_busy;