From: Pierangelo Masarati Date: Tue, 16 Mar 2004 09:29:17 +0000 (+0000) Subject: import minimal fix for databases with overlays from HEAD (ITS#3023) X-Git-Tag: OPENLDAP_REL_ENG_2_2_7~32 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=aa3145d60309e5487222c8619efd1f659337df37;p=openldap import minimal fix for databases with overlays from HEAD (ITS#3023) --- diff --git a/servers/slapd/back-monitor/database.c b/servers/slapd/back-monitor/database.c index 64ccde172e..896b44b60a 100644 --- a/servers/slapd/back-monitor/database.c +++ b/servers/slapd/back-monitor/database.c @@ -66,11 +66,18 @@ monitor_subsys_database_init( e_tmp = NULL; for ( i = nBackendDB; i--; ) { - char buf[ BACKMONITOR_BUFSIZE ]; - int j; + char buf[ BACKMONITOR_BUFSIZE ]; + int j; + slap_overinfo *oi = NULL; be = &backendDB[i]; + if ( strcmp( be->bd_info->bi_type, "over" ) == 0 ) { + oi = (slap_overinfo *)be->bd_info; + + be = &oi->oi_bd; + } + /* Subordinates are not exposed as their own naming context */ if ( SLAP_GLUE_SUBORDINATE( be ) ) { continue;