ITS#6138 use SLAPD_NO_REPLY for persistent searches

The particular code doesn't matter, any result besides
SLAP_CB_CONTINUE always halts overlay/response processing.
This commit is contained in:
Howard Chu 2021-07-27 18:06:23 +01:00 committed by Quanah Gibson-Mount
parent e9e6fd71e1
commit 795add7b96
2 changed files with 4 additions and 5 deletions

View file

@ -2890,9 +2890,6 @@ syncprov_detach_op( Operation *op, syncops *so, slap_overinst *on )
op->o_conn->c_n_ops_completed--;
LDAP_STAILQ_INSERT_TAIL( &op->o_conn->c_ops, op2, o_next );
so->s_flags |= PS_IS_DETACHED;
/* Prevent anyone else from trying to send a result for this op */
op->o_abandon = 1;
}
static int
@ -3032,9 +3029,8 @@ syncprov_search_response( Operation *op, SlapReply *rs )
if ( ss->ss_so->s_res )
syncprov_qstart( ss->ss_so );
ldap_pvt_thread_mutex_unlock( &ss->ss_so->s_mutex );
return SLAPD_NO_REPLY;
}
return LDAP_SUCCESS;
}
}

View file

@ -159,6 +159,9 @@ LDAP_BEGIN_DECL
/* pseudo error code indicating async operation */
#define SLAPD_ASYNCOP (-1027)
/* pseudo error code to suppress frontend response */
#define SLAPD_NO_REPLY (-1028)
/* We assume "C" locale, that is US-ASCII */
#define ASCII_SPACE(c) ( (c) == ' ' )
#define ASCII_LOWER(c) ( (c) >= 'a' && (c) <= 'z' )