mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-01-06 10:46:21 +08:00
Fix negative caching again, be sure it's really from zero entries returned
This commit is contained in:
parent
54aefe30f7
commit
57c25cbd68
@ -1068,7 +1068,8 @@ pcache_response(
|
|||||||
} else if ( rs->sr_type == REP_RESULT ) {
|
} else if ( rs->sr_type == REP_RESULT ) {
|
||||||
QueryTemplate* templ = (qm->templates)+si->template_id;
|
QueryTemplate* templ = (qm->templates)+si->template_id;
|
||||||
if (( si->count && cache_entries( op, rs, &uuid ) == 0 ) ||
|
if (( si->count && cache_entries( op, rs, &uuid ) == 0 ) ||
|
||||||
( !si->count && templ->negttl && rs->sr_err == LDAP_SUCCESS )) {
|
( templ->negttl && !si->count && !si->over &&
|
||||||
|
rs->sr_err == LDAP_SUCCESS )) {
|
||||||
qm->addfunc(qm, &si->query, si->template_id,
|
qm->addfunc(qm, &si->query, si->template_id,
|
||||||
si->count ? &uuid : NULL);
|
si->count ? &uuid : NULL);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user