ldap_pvt_thread_rmutex_unlock( &li->li_op_rmutex, op->o_tid );
}
+ /* ignore these internal reads */
+ if (( lo->mask & LOG_OP_READS ) && op->o_do_not_cache ) {
+ return SLAP_CB_CONTINUE;
+ }
+
if ( li->li_success && rs->sr_err != LDAP_SUCCESS )
goto done;
an[ 0 ].an_name = an[ 0 ].an_desc->ad_cname;
op2.ors_filterstr = mo->mo_groupFilterstr;
op2.ors_filter = &mo->mo_groupFilter;
+ op2.o_do_not_cache = 1; /* internal search, don't log */
memberof_set_backend( &op2, op, on );
(void)op->o_bd->be_search( &op2, &rs2 );
an[ 0 ].an_name = an[ 0 ].an_desc->ad_cname;
op2.ors_filterstr = mo->mo_memberFilterstr;
op2.ors_filter = &mo->mo_memberFilter;
+ op2.o_do_not_cache = 1; /* internal search, don't log */
memberof_set_backend( &op2, op, on );
(void)op->o_bd->be_search( &op2, &rs2 );
Operation op2;
unsigned long opid;
int rc;
+ int cache;
op->o_callback->sc_response = refint_search_cb;
op->o_req_dn = op->o_bd->be_suffix[ 0 ];
op->o_req_ndn = op->o_bd->be_nsuffix[ 0 ];
op->o_dn = op->o_bd->be_rootdn;
op->o_ndn = op->o_bd->be_rootndn;
+ cache = op->o_do_not_cache;
+ op->o_do_not_cache = 1;
/* search */
rc = op->o_bd->be_search( op, &rs );
+ op->o_do_not_cache = cache;
if ( rc != LDAP_SUCCESS ) {
Debug( LDAP_DEBUG_TRACE,