]> git.sur5r.net Git - openldap/commitdiff
ITS#4406 don't cache attrsonly results
authorHoward Chu <hyc@openldap.org>
Thu, 16 Feb 2006 08:16:49 +0000 (08:16 +0000)
committerHoward Chu <hyc@openldap.org>
Thu, 16 Feb 2006 08:16:49 +0000 (08:16 +0000)
servers/slapd/overlays/pcache.c

index b34a088bd7719df505ea4c458aba69adfdbc1b71..7eef3c5d2aa82730e503411791e017bf210020a3 100644 (file)
@@ -1301,6 +1301,9 @@ pcache_op_search(
        }
        ldap_pvt_thread_mutex_unlock(&cm->cache_mutex);
 
+       if (op->ors_attrsonly)
+               cacheable = 0;
+
        if (cacheable) {
                slap_callback           *cb;
                struct search_info      *si;