ITS#4911 move slap_op_init/destroy to slap_init/destroy

This commit is contained in:
Howard Chu 2007-04-05 01:39:24 +00:00
parent c3998fb210
commit 75e1f0ef68
2 changed files with 5 additions and 4 deletions

View File

@ -94,6 +94,8 @@ slap_init( int mode, const char *name )
slapMode = mode;
slap_op_init();
#ifdef SLAPD_MODULES
if ( module_init() != 0 ) {
slap_debug |= LDAP_DEBUG_NONE;
@ -310,8 +312,10 @@ int slap_destroy(void)
}
slap_op_destroy();
ldap_pvt_thread_destroy();
/* should destory the above mutex */
/* should destroy the above mutex */
return rc;
}

View File

@ -727,7 +727,6 @@ unhandled_option:;
extops_init();
lutil_passwd_init();
slap_op_init();
#ifdef HAVE_TLS
rc = ldap_create( &slap_tls_ld );
@ -958,8 +957,6 @@ destroy:
module_kill();
#endif
slap_op_destroy();
extops_kill();
supported_feature_destroy();