mirror of
https://git.openldap.org/openldap/openldap.git
synced 2024-12-21 03:10:25 +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 ) {
|
||||
/* 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 );
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user