From: Howard Chu Date: Wed, 19 May 2004 23:37:14 +0000 (+0000) Subject: ITS#3153 only cache queries with at least one entry X-Git-Tag: OPENDLAP_REL_ENG_2_2_MP~353 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=73fa8b7dd9dc1e04f2d630cd80c79cd539039313;p=openldap ITS#3153 only cache queries with at least one entry --- diff --git a/servers/slapd/overlays/pcache.c b/servers/slapd/overlays/pcache.c index 886380f1ca..20923f5771 100644 --- a/servers/slapd/overlays/pcache.c +++ b/servers/slapd/overlays/pcache.c @@ -1224,7 +1224,7 @@ proxy_cache_response( si->tail = NULL; } } - } else if ( rs->sr_type == REP_RESULT && !si->over ) { + } else if ( rs->sr_type == REP_RESULT && si->count ) { if ( cache_entries( op, rs, &uuid ) == 0) { qm->addfunc(qm, &si->query, si->template_id, &uuid); /* If the consistency checker suspended itself,