mirror of
https://github.com/isc-projects/bind9.git
synced 2026-06-09 12:32:04 -04:00
always log both 'begin cache cleaning' and 'end cache cleaning',
or neither one, but never one without the other
This commit is contained in:
parent
c0ef1acf49
commit
a243aeb92b
1 changed files with 4 additions and 6 deletions
|
|
@ -15,7 +15,7 @@
|
|||
* SOFTWARE.
|
||||
*/
|
||||
|
||||
/* $Id: cache.c,v 1.8 2000/01/06 01:12:20 gson Exp $ */
|
||||
/* $Id: cache.c,v 1.9 2000/01/08 02:12:57 gson Exp $ */
|
||||
|
||||
#include <config.h>
|
||||
#include <limits.h>
|
||||
|
|
@ -372,11 +372,6 @@ begin_cleaning(cache_cleaner_t *cleaner) {
|
|||
isc_result_t result;
|
||||
|
||||
REQUIRE(CLEANER_IDLE(cleaner));
|
||||
|
||||
isc_log_write(dns_lctx, DNS_LOGCATEGORY_GENERAL,
|
||||
DNS_LOGMODULE_CACHE, ISC_LOG_DEBUG(1),
|
||||
"begin cache cleaning");
|
||||
|
||||
/*
|
||||
* Create an iterator and position it at the beginning of the cache.
|
||||
*/
|
||||
|
|
@ -403,6 +398,9 @@ begin_cleaning(cache_cleaner_t *cleaner) {
|
|||
goto destroyiter;
|
||||
}
|
||||
|
||||
isc_log_write(dns_lctx, DNS_LOGCATEGORY_GENERAL,
|
||||
DNS_LOGMODULE_CACHE, ISC_LOG_DEBUG(1),
|
||||
"begin cache cleaning");
|
||||
cleaner->state = cleaner_s_busy;
|
||||
isc_task_send(cleaner->task, &cleaner->resched_event);
|
||||
ENSURE(CLEANER_BUSY(cleaner));
|
||||
|
|
|
|||
Loading…
Reference in a new issue