ITS#3549 acknowledge CANCEL requests

This commit is contained in:
Howard Chu 2005-02-18 01:08:47 +00:00
parent 5d8ece605e
commit 2964bfc48b

View File

@ -881,8 +881,12 @@ syncprov_op_abandon( Operation *op, SlapReply *rs )
if ( so ) {
/* Is this really a Cancel exop? */
if ( op->o_tag != LDAP_REQ_ABANDON ) {
so->s_op->o_cancel = SLAP_CANCEL_ACK;
rs->sr_err = LDAP_CANCELLED;
send_ldap_result( so->s_op, rs );
while ( so->s_op->o_cancel != SLAP_CANCEL_DONE ) {
ldap_pvt_thread_yield();
}
}
syncprov_drop_psearch( so, 0 );
}