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;