mirror of
https://git.openldap.org/openldap/openldap.git
synced 2026-01-05 22:50:51 -05:00
ITS#8354 fix syncprov abandon
Check for abandon just before recording psearch
This commit is contained in:
parent
f2d0aa7d22
commit
4773850d42
1 changed files with 5 additions and 0 deletions
|
|
@ -2553,6 +2553,11 @@ syncprov_op_search( Operation *op, SlapReply *rs )
|
|||
sop->s_inuse = 2;
|
||||
|
||||
ldap_pvt_thread_mutex_lock( &si->si_ops_mutex );
|
||||
if ( op->o_abandon ) {
|
||||
ldap_pvt_thread_mutex_unlock( &si->si_ops_mutex );
|
||||
ch_free( sop );
|
||||
return SLAPD_ABANDON;
|
||||
}
|
||||
while ( si->si_active ) {
|
||||
/* Wait for active mods to finish before proceeding, as they
|
||||
* may already have inspected the si_ops list looking for
|
||||
|
|
|
|||
Loading…
Reference in a new issue