]> git.sur5r.net Git - openldap/commitdiff
Resolve MDB/HDB monitor OID clashes
authorQuanah Gibson-Mount <quanah@openldap.org>
Fri, 4 Nov 2011 21:44:01 +0000 (14:44 -0700)
committerQuanah Gibson-Mount <quanah@openldap.org>
Fri, 4 Nov 2011 21:44:01 +0000 (14:44 -0700)
Conflicts:

servers/slapd/bconfig.c

servers/slapd/back-bdb/monitor.c
servers/slapd/back-mdb/monitor.c
servers/slapd/bconfig.c

index 96a1dad96964a9b94e21e287fdcff659f9cd4a20..57c49edc78d8eb50f2a7fd15691d0c90b09bfdb8 100644 (file)
@@ -41,7 +41,7 @@ bdb_monitor_idx_entry_add(
        struct bdb_info *bdb,
        Entry           *e );
 
-static AttributeDescription    *ad_olmBDBNotIndexed;
+static AttributeDescription    *ad_olmDbNotIndexed;
 #endif /* BDB_MONITOR_IDX */
 
 /*
@@ -95,7 +95,7 @@ static struct {
                "USAGE dSAOperation )",
                &ad_olmBDBIDLCache },
 
-       { "( olmBDBAttributes:4 "
+       { "( olmDatabaseAttributes:1 "
                "NAME ( 'olmDbDirectory' ) "
                "DESC 'Path name of the directory "
                        "where the database environment resides' "
@@ -105,13 +105,13 @@ static struct {
                &ad_olmDbDirectory },
 
 #ifdef BDB_MONITOR_IDX
-       { "( olmBDBAttributes:5 "
-               "NAME ( 'olmBDBNotIndexed' ) "
+       { "( olmDatabaseAttributes:2 "
+               "NAME ( 'olmDbNotIndexed' ) "
                "DESC 'Missing indexes resulting from candidate selection' "
                "SUP monitoredInfo "
                "NO-USER-MODIFICATION "
                "USAGE dSAOperation )",
-               &ad_olmBDBNotIndexed },
+               &ad_olmDbNotIndexed },
 #endif /* BDB_MONITOR_IDX */
 
        { NULL }
@@ -132,7 +132,7 @@ static struct {
                        "$ olmBDBIDLCache "
                        "$ olmDbDirectory "
 #ifdef BDB_MONITOR_IDX
-                       "$ olmBDBNotIndexed "
+                       "$ olmDbNotIndexed "
 #endif /* BDB_MONITOR_IDX */
                        ") )",
                &oc_olmBDBDatabase },
@@ -692,7 +692,7 @@ bdb_monitor_idx_entry_add(
        BerVarray       vals = NULL;
        Attribute       *a;
 
-       a = attr_find( e->e_attrs, ad_olmBDBNotIndexed );
+       a = attr_find( e->e_attrs, ad_olmDbNotIndexed );
 
        ldap_pvt_thread_mutex_lock( &bdb->bi_idx_mutex );
 
@@ -712,7 +712,7 @@ bdb_monitor_idx_entry_add(
 
                        for ( ap = &e->e_attrs; *ap != NULL; ap = &(*ap)->a_next )
                                ;
-                       *ap = attr_alloc( ad_olmBDBNotIndexed );
+                       *ap = attr_alloc( ad_olmDbNotIndexed );
                        a = *ap;
                }
                a->a_vals = vals;
index 728bd014475a33ab746202c448d5be26d3b53ebd..497510147c60dbb08f9f2b1ed4beac54c963b458 100644 (file)
@@ -39,7 +39,7 @@ mdb_monitor_idx_entry_add(
        struct mdb_info *mdb,
        Entry           *e );
 
-static AttributeDescription    *ad_olmMDBNotIndexed;
+static AttributeDescription    *ad_olmDbNotIndexed;
 #endif /* MDB_MONITOR_IDX */
 
 /*
@@ -48,11 +48,11 @@ static AttributeDescription *ad_olmMDBNotIndexed;
  * 
  * Subsystems monitor attributes       1.3.6.1.4.1.4203.666.1.55.0
  * Databases monitor attributes                1.3.6.1.4.1.4203.666.1.55.0.1
- * MDB database monitor attributes     1.3.6.1.4.1.4203.666.1.55.0.1.1
+ * MDB database monitor attributes     1.3.6.1.4.1.4203.666.1.55.0.1.3
  *
  * Subsystems monitor objectclasses    1.3.6.1.4.1.4203.666.3.16.0
  * Databases monitor objectclasses     1.3.6.1.4.1.4203.666.3.16.0.1
- * MDB database monitor objectclasses  1.3.6.1.4.1.4203.666.3.16.0.1.1
+ * MDB database monitor objectclasses  1.3.6.1.4.1.4203.666.3.16.0.1.3
  */
 
 static struct {
@@ -69,7 +69,7 @@ static struct {
        char                    *desc;
        AttributeDescription    **ad;
 }              s_at[] = {
-       { "( olmMDBAttributes:4 "
+       { "( olmDatabaseAttributes:1 "
                "NAME ( 'olmDbDirectory' ) "
                "DESC 'Path name of the directory "
                        "where the database environment resides' "
@@ -79,13 +79,13 @@ static struct {
                &ad_olmDbDirectory },
 
 #ifdef MDB_MONITOR_IDX
-       { "( olmMDBAttributes:5 "
-               "NAME ( 'olmMDBNotIndexed' ) "
+       { "( olmDatabaseAttributes:2 "
+               "NAME ( 'olmDbNotIndexed' ) "
                "DESC 'Missing indexes resulting from candidate selection' "
                "SUP monitoredInfo "
                "NO-USER-MODIFICATION "
                "USAGE dSAOperation )",
-               &ad_olmMDBNotIndexed },
+               &ad_olmDbNotIndexed },
 #endif /* MDB_MONITOR_IDX */
 
        { NULL }
@@ -103,7 +103,7 @@ static struct {
                "MAY ( "
                        "olmDbDirectory "
 #ifdef MDB_MONITOR_IDX
-                       "$ olmMDBNotIndexed "
+                       "$ olmDbNotIndexed "
 #endif /* MDB_MONITOR_IDX */
                        ") )",
                &oc_olmMDBDatabase },
@@ -623,7 +623,7 @@ mdb_monitor_idx_entry_add(
        BerVarray       vals = NULL;
        Attribute       *a;
 
-       a = attr_find( e->e_attrs, ad_olmMDBNotIndexed );
+       a = attr_find( e->e_attrs, ad_olmDbNotIndexed );
 
        ldap_pvt_thread_mutex_lock( &mdb->mi_idx_mutex );
 
@@ -643,7 +643,7 @@ mdb_monitor_idx_entry_add(
 
                        for ( ap = &e->e_attrs; *ap != NULL; ap = &(*ap)->a_next )
                                ;
-                       *ap = attr_alloc( ad_olmMDBNotIndexed );
+                       *ap = attr_alloc( ad_olmDbNotIndexed );
                        a = *ap;
                }
                a->a_vals = vals;
index c1e0bbcc0ae0507783441c79983474cc92d74c65..26f1e5a71edcafe7baded459be317f1758187348 100644 (file)
@@ -243,9 +243,13 @@ static OidRec OidMacros[] = {
  * OLcfg{Bk|Db}{Oc|At}:3               -> back-ldap
  * OLcfg{Bk|Db}{Oc|At}:4               -> back-monitor
  * OLcfg{Bk|Db}{Oc|At}:5               -> back-relay
- * OLcfg{Bk|Db}{Oc|At}:6               -> back-sql
+ * OLcfg{Bk|Db}{Oc|At}:6               -> back-sql(/back-ndb)
  * OLcfg{Bk|Db}{Oc|At}:7               -> back-sock
  * OLcfg{Bk|Db}{Oc|At}:8               -> back-null
+ * OLcfg{Bk|Db}{Oc|At}:9               -> back-passwd
+ * OLcfg{Bk|Db}{Oc|At}:10              -> back-shell
+ * OLcfg{Bk|Db}{Oc|At}:11              -> back-perl
+ * OLcfg{Bk|Db}{Oc|At}:12              -> back-mdb
  */
 
 /*