]> git.sur5r.net Git - openldap/commitdiff
ITS#7416 make sure to reopen attr DBs after env reopen
authorHoward Chu <hyc@openldap.org>
Thu, 11 Oct 2012 23:45:42 +0000 (16:45 -0700)
committerHoward Chu <hyc@openldap.org>
Thu, 11 Oct 2012 23:45:42 +0000 (16:45 -0700)
servers/slapd/back-mdb/attr.c

index 8faf17a59cbb03e4783c198e2e23328ea8efde55..31683d2c4430cf0ad5c2f8ee55a3c150e9de00a5 100644 (file)
@@ -162,8 +162,10 @@ mdb_attr_dbs_close(
 {
        int i;
        for ( i=0; i<mdb->mi_nattrs; i++ )
-               if ( mdb->mi_attrs[i]->ai_dbi )
+               if ( mdb->mi_attrs[i]->ai_dbi ) {
                        mdb_close( mdb->mi_dbenv, mdb->mi_attrs[i]->ai_dbi );
+                       mdb->mi_attrs[i]->ai_dbi = 0;
+               }
 }
 
 int