]> git.sur5r.net Git - openldap/commitdiff
re-fix ITS#4260
authorPierangelo Masarati <ando@openldap.org>
Thu, 5 Jan 2006 21:22:50 +0000 (21:22 +0000)
committerPierangelo Masarati <ando@openldap.org>
Thu, 5 Jan 2006 21:22:50 +0000 (21:22 +0000)
servers/slapd/back-bdb/config.c

index 01de9ec201d0c0b1323bfe0e008f3ad0878b06ec..dd7feee8d14c8f849e90560a528e3c33ff671599 100644 (file)
@@ -272,7 +272,9 @@ bdb_online_index( void *ctx, void *arg )
        }
 
        for ( i = 0; i < bdb->bi_nattrs; i++ ) {
-               if ( bdb->bi_attrs[ i ]->ai_indexmask & BDB_INDEX_DELETING ) {
+               if ( bdb->bi_attrs[ i ]->ai_indexmask & BDB_INDEX_DELETING
+                       || bdb->bi_attrs[ i ]->ai_newmask == 0 )
+               {
                        continue;
                }
                bdb->bi_attrs[ i ]->ai_indexmask = bdb->bi_attrs[ i ]->ai_newmask;