mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-01-12 10:54:48 +08:00
ITS#3549 acknowledge CANCEL requests
This commit is contained in:
parent
5d8ece605e
commit
2964bfc48b
@ -881,8 +881,12 @@ syncprov_op_abandon( Operation *op, SlapReply *rs )
|
|||||||
if ( so ) {
|
if ( so ) {
|
||||||
/* Is this really a Cancel exop? */
|
/* Is this really a Cancel exop? */
|
||||||
if ( op->o_tag != LDAP_REQ_ABANDON ) {
|
if ( op->o_tag != LDAP_REQ_ABANDON ) {
|
||||||
|
so->s_op->o_cancel = SLAP_CANCEL_ACK;
|
||||||
rs->sr_err = LDAP_CANCELLED;
|
rs->sr_err = LDAP_CANCELLED;
|
||||||
send_ldap_result( so->s_op, rs );
|
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 );
|
syncprov_drop_psearch( so, 0 );
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user