From: Pierangelo Masarati Date: Thu, 5 Jan 2006 21:22:50 +0000 (+0000) Subject: re-fix ITS#4260 X-Git-Tag: OPENLDAP_REL_ENG_2_4_BP~460 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=b18ba481cf0707857c1d9f9f22c8465c1fa94cee;p=openldap re-fix ITS#4260 --- diff --git a/servers/slapd/back-bdb/config.c b/servers/slapd/back-bdb/config.c index 01de9ec201..dd7feee8d1 100644 --- a/servers/slapd/back-bdb/config.c +++ b/servers/slapd/back-bdb/config.c @@ -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;