]> git.sur5r.net Git - openldap/commitdiff
ITS#3153 only cache queries with at least one entry
authorHoward Chu <hyc@openldap.org>
Wed, 19 May 2004 23:37:14 +0000 (23:37 +0000)
committerHoward Chu <hyc@openldap.org>
Wed, 19 May 2004 23:37:14 +0000 (23:37 +0000)
servers/slapd/overlays/pcache.c

index 886380f1caf75a2410fd01976cb74fe1d3422dbf..20923f5771ad4d9b7bbdb22a1938d809aa112284 100644 (file)
@@ -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,