mirror of
https://github.com/NLnetLabs/unbound.git
synced 2026-02-02 11:49:28 -05:00
- Fixup compile without cachedb.
This commit is contained in:
parent
d55511f1dd
commit
f3f85e5a11
2 changed files with 0 additions and 6 deletions
|
|
@ -511,7 +511,6 @@ void mesh_new_client(struct mesh_area* mesh, struct query_info* qinfo,
|
|||
log_err("mesh_new_client: out of memory initializing serve expired");
|
||||
goto servfail_mem;
|
||||
}
|
||||
#ifdef USE_CACHEDB
|
||||
if(!timeout && mesh->env->cfg->serve_expired &&
|
||||
!mesh->env->cfg->serve_expired_client_timeout &&
|
||||
(mesh->env->cachedb_enabled &&
|
||||
|
|
@ -521,7 +520,6 @@ void mesh_new_client(struct mesh_area* mesh, struct query_info* qinfo,
|
|||
goto servfail_mem;
|
||||
}
|
||||
}
|
||||
#endif
|
||||
/* update statistics */
|
||||
if(was_detached) {
|
||||
log_assert(mesh->num_detached_states > 0);
|
||||
|
|
@ -627,7 +625,6 @@ mesh_new_callback(struct mesh_area* mesh, struct query_info* qinfo,
|
|||
mesh_state_delete(&s->s);
|
||||
return 0;
|
||||
}
|
||||
#ifdef USE_CACHEDB
|
||||
if(!timeout && mesh->env->cfg->serve_expired &&
|
||||
!mesh->env->cfg->serve_expired_client_timeout &&
|
||||
(mesh->env->cachedb_enabled &&
|
||||
|
|
@ -638,7 +635,6 @@ mesh_new_callback(struct mesh_area* mesh, struct query_info* qinfo,
|
|||
return 0;
|
||||
}
|
||||
}
|
||||
#endif
|
||||
/* update statistics */
|
||||
if(was_detached) {
|
||||
log_assert(mesh->num_detached_states > 0);
|
||||
|
|
|
|||
|
|
@ -537,10 +537,8 @@ struct module_env {
|
|||
/** EDNS client string information */
|
||||
struct edns_strings* edns_strings;
|
||||
|
||||
#ifdef USE_CACHEDB
|
||||
/** the cachedb enabled value, copied and stored here. */
|
||||
int cachedb_enabled;
|
||||
#endif
|
||||
/* Make every mesh state unique, do not aggregate mesh states. */
|
||||
int unique_mesh;
|
||||
};
|
||||
|
|
|
|||
Loading…
Reference in a new issue