mirror of
https://github.com/apache/httpd.git
synced 2025-08-07 04:02:58 +03:00
PR61891: looping over mostly full LDAP cache
*) mod_ldap: Fix a case where a full LDAP cache would continually fail to purge old entries and log AH01323. PR61891. Submitted By: Hendrik Harms <hendrik.harms gmail.com> Committed By: covener git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1818040 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
@@ -114,6 +114,7 @@ void util_ldap_url_node_display(request_rec *r, util_ald_cache_t *cache, void *n
|
||||
"<td nowrap>%ld</td>"
|
||||
"<td nowrap>%ld</td>"
|
||||
"<td nowrap>%ld</td>"
|
||||
"<td nowrap>%ld</td>"
|
||||
"<td nowrap>%s</td>"
|
||||
"</tr>",
|
||||
node->url,
|
||||
@@ -121,6 +122,7 @@ void util_ldap_url_node_display(request_rec *r, util_ald_cache_t *cache, void *n
|
||||
cache_node->size,
|
||||
cache_node->maxentries,
|
||||
cache_node->numentries,
|
||||
cache_node->ttl / APR_USEC_PER_SEC,
|
||||
cache_node->fullmark,
|
||||
date_str);
|
||||
}
|
||||
@@ -452,6 +454,7 @@ apr_status_t util_ldap_cache_init(apr_pool_t *pool, util_ldap_state_t *st)
|
||||
st->util_ldap_cache =
|
||||
util_ald_create_cache(st,
|
||||
st->search_cache_size,
|
||||
st->search_cache_ttl,
|
||||
util_ldap_url_node_hash,
|
||||
util_ldap_url_node_compare,
|
||||
util_ldap_url_node_copy,
|
||||
|
Reference in New Issue
Block a user