]> git.sur5r.net Git - openldap/commitdiff
Initialize schema before starting server.
authorKurt Zeilenga <kurt@openldap.org>
Sun, 15 Jun 2003 05:57:14 +0000 (05:57 +0000)
committerKurt Zeilenga <kurt@openldap.org>
Sun, 15 Jun 2003 05:57:14 +0000 (05:57 +0000)
servers/slapd/main.c

index ea41382b9ae95507c589fd3c77ba9b6f7b584243..61dc82e12186bb0210fdedbaf51460e4b5c37de8 100644 (file)
@@ -373,12 +373,6 @@ int main( int argc, char **argv )
        }
 #endif
 
-       if ( slap_init( serverMode, serverName ) != 0 ) {
-               rc = 1;
-               SERVICE_EXIT( ERROR_SERVICE_SPECIFIC_ERROR, 18 );
-               goto destroy;
-       }
-
        if ( slap_schema_init( ) != 0 ) {
 #ifdef NEW_LOGGING
                LDAP_LOG( OPERATION, CRIT, "main: schema initialization error\n", 0, 0, 0 );
@@ -391,6 +385,12 @@ int main( int argc, char **argv )
                goto destroy;
        }
 
+       if ( slap_init( serverMode, serverName ) != 0 ) {
+               rc = 1;
+               SERVICE_EXIT( ERROR_SERVICE_SPECIFIC_ERROR, 18 );
+               goto destroy;
+       }
+
        if ( slap_controls_init( ) != 0 ) {
 #ifdef NEW_LOGGING
                LDAP_LOG( OPERATION, CRIT, "main: controls initialization error\n", 0, 0, 0 );