]> git.sur5r.net Git - openldap/commitdiff
Call SLAPI start plugins in slap_startup(), not slap_init(); plugins
authorLuke Howard <lukeh@openldap.org>
Sat, 7 Jun 2003 14:35:29 +0000 (14:35 +0000)
committerLuke Howard <lukeh@openldap.org>
Sat, 7 Jun 2003 14:35:29 +0000 (14:35 +0000)
aren't loaded at slap_init() time

servers/slapd/init.c

index dc9c308aea170840f1378dde94666efdee54d5ff..0afd7b7b7b0f7b4a6d1d33263b8978d259624c4b 100644 (file)
@@ -145,17 +145,6 @@ slap_init( int mode, const char *name )
                                rc = backend_init( );
                        }
 
-#ifdef LDAP_SLAPI
-                       if( rc == 0 ) {
-                               Slapi_PBlock *pb = slapi_pblock_new();
-
-                               if ( doPluginFNs( NULL, SLAPI_PLUGIN_START_FN, pb ) < 0 ) {
-                                       rc = -1;
-                               }
-                               slapi_pblock_destroy( pb );
-                       }
-#endif /* LDAP_SLAPI */
-
                        break;
 
                default:
@@ -189,6 +178,17 @@ int slap_startup( Backend *be )
 
        rc = backend_startup( be );
 
+#ifdef LDAP_SLAPI
+       if( rc == 0 ) {
+               Slapi_PBlock *pb = slapi_pblock_new();
+
+               if ( doPluginFNs( NULL, SLAPI_PLUGIN_START_FN, pb ) < 0 ) {
+                       rc = -1;
+               }
+               slapi_pblock_destroy( pb );
+       }
+#endif /* LDAP_SLAPI */
+
        return rc;
 }