don't bother about unregistering stuff during shutdown

This commit is contained in:
Pierangelo Masarati 2006-09-09 16:25:32 +00:00
parent 8eab487020
commit c826725b7a
2 changed files with 22 additions and 1 deletions

View File

@ -264,7 +264,10 @@ retry:;
}
}
monitor_cache_release( mi, mc->mc_e );
if ( mc ) {
monitor_cache_release( mi, mc->mc_e );
}
}
ldap_pvt_thread_mutex_unlock( &mi->mi_cache_mutex );

View File

@ -1028,6 +1028,12 @@ monitor_back_unregister_entry(
return -1;
}
/* entry will be regularly freed, and resources released
* according to callbacks */
if ( slapd_shutdown ) {
return 0;
}
mi = ( monitor_info_t * )be_monitor->be_private;
assert( mi != NULL );
@ -1124,6 +1130,12 @@ monitor_back_unregister_entry_parent(
return -1;
}
/* entry will be regularly freed, and resources released
* according to callbacks */
if ( slapd_shutdown ) {
return 0;
}
mi = ( monitor_info_t * )be_monitor->be_private;
assert( mi != NULL );
@ -1264,6 +1276,12 @@ monitor_back_unregister_entry_attrs(
return -1;
}
/* entry will be regularly freed, and resources released
* according to callbacks */
if ( slapd_shutdown ) {
return 0;
}
mi = ( monitor_info_t * )be_monitor->be_private;
assert( mi != NULL );