Avoid shutdown problems

This commit is contained in:
Howard Chu 2009-03-13 08:33:34 +00:00
parent 0af440befe
commit 6044e46ec7

View File

@ -1944,6 +1944,9 @@ syncprov_op_mod( Operation *op, SlapReply *rs )
* Currently it's not an issue because there are
* no dynamic config deletes...
*/
if ( slapd_shutdown )
return SLAPD_ABANDON;
if ( !ldap_pvt_thread_pool_pausecheck( &connection_pool ))
ldap_pvt_thread_yield();
ldap_pvt_thread_mutex_lock( &mt->mt_mutex );