mirror of
https://git.openldap.org/openldap/openldap.git
synced 2024-12-21 03:10:25 +08:00
ITS#3671 make sure to flush queue when able
This commit is contained in:
parent
bae2f5f083
commit
75164fbe1c
@ -841,6 +841,14 @@ syncprov_sendresp( Operation *op, opcookie *opc, syncops *so, Entry **e, int mod
|
||||
op->o_tmpfree( rs.sr_ctrls[0], op->o_tmpmemctx );
|
||||
op->o_private = sop.o_private;
|
||||
rs.sr_ctrls = NULL;
|
||||
/* Check queue again here; if we were hanging in a send and eventually
|
||||
* recovered, there may be more to send now.
|
||||
*/
|
||||
if ( rs.sr_err == LDAP_SUCCESS && queue && so->s_res ) {
|
||||
ldap_pvt_thread_mutex_lock( &so->s_mutex );
|
||||
rs.sr_err = syncprov_qplay( &sop, on, so );
|
||||
ldap_pvt_thread_mutex_unlock( &so->s_mutex );
|
||||
}
|
||||
return rs.sr_err;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user