mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-01-06 10:46:21 +08:00
Fix 1.461, forgot to release mutex when persistent conn exists
This commit is contained in:
parent
74c3d458b1
commit
ae3fb6acfa
@ -4605,7 +4605,8 @@ syncrepl_config( ConfigArgs *c )
|
||||
if ( si->si_re ) {
|
||||
if ( ldap_pvt_thread_mutex_trylock( &si->si_mutex )) {
|
||||
isrunning = 1;
|
||||
} else if ( si->si_conn ) {
|
||||
} else {
|
||||
if ( si->si_conn ) {
|
||||
isrunning = 1;
|
||||
/* If there's a persistent connection, we don't
|
||||
* know if it's already got a thread queued.
|
||||
@ -4621,8 +4622,7 @@ syncrepl_config( ConfigArgs *c )
|
||||
si->si_re->interval.tv_sec = si->si_interval;
|
||||
}
|
||||
ldap_pvt_thread_mutex_unlock( &slapd_rq.rq_mutex );
|
||||
|
||||
} else {
|
||||
}
|
||||
ldap_pvt_thread_mutex_unlock( &si->si_mutex );
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user