ITS#4417 backglue must pass intermediate responses transparently.

syncprov must prevent send_ldap_result from being called for an
in-progress persistent search.
This commit is contained in:
Howard Chu 2006-02-27 09:20:55 +00:00
parent cd18c6cb4d
commit 7b5528d68b
2 changed files with 4 additions and 0 deletions

View File

@ -93,6 +93,7 @@ glue_op_response ( Operation *op, SlapReply *rs )
switch(rs->sr_type) {
case REP_SEARCH:
case REP_SEARCHREF:
case REP_INTERMEDIATE:
return SLAP_CB_CONTINUE;
default:

View File

@ -1784,6 +1784,9 @@ syncprov_detach_op( Operation *op, syncops *so, slap_overinst *on )
LDAP_STAILQ_INSERT_TAIL( &op->o_conn->c_ops, op2, o_next );
so->s_flags |= PS_IS_DETACHED;
ldap_pvt_thread_mutex_unlock( &op->o_conn->c_mutex );
/* Prevent anyone else from trying to send a result for this op */
op->o_abandon = 1;
}
static int