mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-12-24 00:29:35 -05:00
ITS#9538 Actually skip internal searches
This commit is contained in:
parent
87b78f2060
commit
bc28e7950d
1 changed files with 10 additions and 5 deletions
|
|
@ -2063,6 +2063,16 @@ static int
|
|||
accesslog_op_misc( Operation *op, SlapReply *rs )
|
||||
{
|
||||
slap_callback *sc;
|
||||
slap_verbmasks *lo;
|
||||
int logop;
|
||||
|
||||
logop = accesslog_op2logop( op );
|
||||
lo = logops+logop+EN_OFFSET;
|
||||
|
||||
/* ignore these internal reads */
|
||||
if (( lo->mask & LOG_OP_READS ) && op->o_do_not_cache ) {
|
||||
return SLAP_CB_CONTINUE;
|
||||
}
|
||||
|
||||
sc = op->o_tmpcalloc( 1, sizeof(slap_callback), op->o_tmpmemctx );
|
||||
sc->sc_response = accesslog_response;
|
||||
|
|
@ -2097,11 +2107,6 @@ accesslog_op_mod( Operation *op, SlapReply *rs )
|
|||
logop = accesslog_op2logop( op );
|
||||
lo = logops+logop+EN_OFFSET;
|
||||
|
||||
/* Ignore these internal reads */
|
||||
if (( lo->mask & LOG_OP_READS ) && op->o_do_not_cache ) {
|
||||
return SLAP_CB_CONTINUE;
|
||||
}
|
||||
|
||||
if ( !( li->li_ops & lo->mask )) {
|
||||
log_base *lb;
|
||||
int i = 0;
|
||||
|
|
|
|||
Loading…
Reference in a new issue