]> git.ipfire.org Git - thirdparty/openldap.git/commitdiff
ITS#8307 slapo-dds: mark internal searches as do_not_cache
authorHoward Chu <hyc@openldap.org>
Wed, 13 Jan 2021 16:39:24 +0000 (16:39 +0000)
committerHoward Chu <hyc@openldap.org>
Wed, 13 Jan 2021 16:39:24 +0000 (16:39 +0000)
servers/slapd/overlays/dds.c

index 7a73068300b31a9696f3eebec68c7d7a0e476104..59f16ecee68f97405d52ba12e660e4537bafc1f5 100644 (file)
@@ -155,6 +155,7 @@ dds_expire( void *ctx, dds_info_t *di )
        op->ors_tlimit = DDS_INTERVAL( di )/2 + 1;
        op->ors_slimit = SLAP_NO_LIMIT;
        op->ors_attrs = slap_anlist_no_attrs;
+       op->o_do_not_cache = 1;
 
        expire = slap_get_time() - di->di_tolerance;
        ts.bv_val = tsbuf;
@@ -1722,6 +1723,7 @@ dds_count( void *ctx, BackendDB *be )
        op->ors_tlimit = SLAP_NO_LIMIT;
        op->ors_slimit = SLAP_NO_LIMIT;
        op->ors_attrs = slap_anlist_no_attrs;
+       op->o_do_not_cache = 1;
 
        op->ors_filterstr.bv_len = STRLENOF( "(objectClass=" ")" )
                + slap_schema.si_oc_dynamicObject->soc_cname.bv_len;