ITS#6011 don't hang around during a shutdown...

This commit is contained in:
Howard Chu 2009-03-11 07:04:27 +00:00
parent 7f375ae276
commit f347798d48

View file

@ -1260,6 +1260,8 @@ do_syncrepl(
/* Don't get stuck here while a pause is initiated */
while ( ldap_pvt_thread_mutex_trylock( &si->si_mutex )) {
if ( slapd_shutdown )
return NULL;
if ( !ldap_pvt_thread_pool_pausecheck( &connection_pool ))
ldap_pvt_thread_yield();
}