From: Howard Chu Date: Mon, 12 Sep 2011 18:41:04 +0000 (-0700) Subject: Resolve MDB/HDB monitor OID clashes X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=9297050f9e727fbc59b63cd218a13881fb227431;p=openldap Resolve MDB/HDB monitor OID clashes --- diff --git a/servers/slapd/back-bdb/monitor.c b/servers/slapd/back-bdb/monitor.c index 96a1dad969..57c49edc78 100644 --- a/servers/slapd/back-bdb/monitor.c +++ b/servers/slapd/back-bdb/monitor.c @@ -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; diff --git a/servers/slapd/back-mdb/monitor.c b/servers/slapd/back-mdb/monitor.c index 728bd01447..497510147c 100644 --- a/servers/slapd/back-mdb/monitor.c +++ b/servers/slapd/back-mdb/monitor.c @@ -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; diff --git a/servers/slapd/bconfig.c b/servers/slapd/bconfig.c index 3a0b1890d7..fc5e5ee88d 100644 --- a/servers/slapd/bconfig.c +++ b/servers/slapd/bconfig.c @@ -250,6 +250,7 @@ static OidRec OidMacros[] = { * 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 */ /*