]> git.sur5r.net Git - openldap/commitdiff
import minimal fix for databases with overlays from HEAD (ITS#3023)
authorPierangelo Masarati <ando@openldap.org>
Tue, 16 Mar 2004 09:29:17 +0000 (09:29 +0000)
committerPierangelo Masarati <ando@openldap.org>
Tue, 16 Mar 2004 09:29:17 +0000 (09:29 +0000)
servers/slapd/back-monitor/database.c

index 64ccde172e774fdbcc8061fe22267b2c25647bb1..896b44b60a1f968840a43ceb3056506d3ad589cc 100644 (file)
@@ -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;