From fa6b0eac58ca1aac81b538095bec5522ce3388a2 Mon Sep 17 00:00:00 2001 From: Martin Nagy Date: Thu, 23 Apr 2009 07:27:05 +0200 Subject: Don't cache empty records for now. --- src/cache.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/cache.c b/src/cache.c index fa57563..683f3fd 100644 --- a/src/cache.c +++ b/src/cache.c @@ -201,7 +201,8 @@ cached_ldap_rdatalist_get(isc_mem_t *mctx, ldap_cache_t *cache, if (!in_cache) { INIT_LIST(rdlist); result = ldapdb_rdatalist_get(mctx, ldap_db, name, &rdlist); - if (result != ISC_R_SUCCESS && result != ISC_R_NOTFOUND) + /* TODO: Cache entries that are not found. */ + if (result != ISC_R_SUCCESS) goto cleanup; CONTROLED_LOCK(&cache->mutex); /* Check again to make sure. */ -- cgit