Skip to content
Snippets Groups Projects
Commit 0da38889 authored by Howard Chu's avatar Howard Chu
Browse files

ITS#8541 fix data race in syncprov removal

parent 70488c22
No related branches found
No related tags found
No related merge requests found
Pipeline #1427 passed
......@@ -3958,10 +3958,12 @@ syncprov_db_close(
for ( so=si->si_ops, sonext=so; so; so=sonext ) {
SlapReply rs = {REP_RESULT};
rs.sr_err = LDAP_UNAVAILABLE;
ldap_pvt_thread_mutex_lock( &so->s_mutex );
send_ldap_result( so->s_op, &rs );
sonext=so->s_next;
if ( so->s_flags & PS_TASK_QUEUED )
ldap_pvt_thread_pool_retract( so->s_pool_cookie );
ldap_pvt_thread_mutex_unlock( &so->s_mutex );
if ( !syncprov_drop_psearch( so, 0 ))
so->s_si = NULL;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment