]> git.sur5r.net Git - openldap/commitdiff
ITS#4911 move slap_op_init/destroy to slap_init/destroy
authorHoward Chu <hyc@openldap.org>
Thu, 5 Apr 2007 01:39:24 +0000 (01:39 +0000)
committerHoward Chu <hyc@openldap.org>
Thu, 5 Apr 2007 01:39:24 +0000 (01:39 +0000)
servers/slapd/init.c
servers/slapd/main.c

index 3cff69e3e63765e010dc5d6537c2b74684a983b8..1e54b7193b8d9a57dec083d3c2824337c964ebbe 100644 (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;
 }
index ba368c5a7be1825bdceffc7e88f8aefbfa262436..9dc39c9f9f9dc995037a96d3c442fa832b5cece4 100644 (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();