]> git.sur5r.net Git - openldap/commitdiff
do not init schema that's not specific to monitoring
authorPierangelo Masarati <ando@openldap.org>
Sun, 18 May 2003 00:15:28 +0000 (00:15 +0000)
committerPierangelo Masarati <ando@openldap.org>
Sun, 18 May 2003 00:15:28 +0000 (00:15 +0000)
servers/slapd/back-monitor/init.c

index 4173c99536f69f23e62bac491e64f252ad36a878..0d56fbfdd646af5a6f2bb33126a4e6634d97805d 100644 (file)
@@ -41,7 +41,7 @@
 #include "lber_pvt.h"
 #include "back-monitor.h"
 
-#define INTEGRATE_CORE_SCHEMA
+#undef INTEGRATE_CORE_SCHEMA
 
 /*
  * used by many functions to add description to entries
@@ -454,7 +454,6 @@ monitor_back_db_open(
                { NULL, NULL, -1 },     /* l */
 #endif /* INTEGRATE_CORE_SCHEMA */
                { NULL, NULL, -1 }
-#ifdef INTEGRATE_CORE_SCHEMA
        }, mat_core[] = {
                { "description", "( 2.5.4.13 "
                        "NAME 'description' "
@@ -474,7 +473,6 @@ monitor_back_db_open(
                        "SUP name )",
                        offsetof(struct monitorinfo, mi_ad_l) },
                { NULL, NULL, -1 }
-#endif /* INTEGRATE_CORE_SCHEMA */
        };
        
        struct tm               *tms;
@@ -496,8 +494,10 @@ monitor_back_db_open(
        mi->mi_startTime.bv_val = tmbuf;
        mi->mi_startTime.bv_len = strlen( tmbuf );
 
+#ifdef INTEGRATE_CORE_SCHEMA
        /* prepare for schema integration */
        for ( k = 0; mat[k].name != NULL; k++ );
+#endif /* INTEGRATE_CORE_SCHEMA */
 
        for ( i = 0; mat_core[i].name != NULL; i++ ) {
                AttributeDescription    **ad;