]> git.sur5r.net Git - openldap/commitdiff
__should__ fix ITS#4262; please review
authorPierangelo Masarati <ando@openldap.org>
Fri, 16 Dec 2005 00:04:51 +0000 (00:04 +0000)
committerPierangelo Masarati <ando@openldap.org>
Fri, 16 Dec 2005 00:04:51 +0000 (00:04 +0000)
servers/slapd/back-bdb/config.c

index 309346bf75717acfd78933b0e06582695f8ba977..d5ffaa991d66126d17dae588fca9f999481e9c15 100644 (file)
@@ -466,7 +466,14 @@ bdb_cf_gen(ConfigArgs *c)
                        break;
                case BDB_INDEX:
                        if ( c->valx == -1 ) {
+                               int i;
+
                                /* delete all (FIXME) */
+                               for ( i = 0; i < bdb->bi_nattrs; i++ ) {
+                                       bdb->bi_attrs[i]->ai_indexmask |= BDB_INDEX_DELETING;
+                               }
+                               bdb->bi_flags |= BDB_DEL_INDEX;
+                               c->cleanup = bdb_cf_cleanup;
 
                        } else {
                                struct berval bv, def = BER_BVC("default");