From: Howard Chu Date: Thu, 11 Oct 2012 23:45:42 +0000 (-0700) Subject: ITS#7416 make sure to reopen attr DBs after env reopen X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=970e7f8199fff70b313b1a25c33603f016830419;p=openldap ITS#7416 make sure to reopen attr DBs after env reopen --- diff --git a/servers/slapd/back-mdb/attr.c b/servers/slapd/back-mdb/attr.c index 8faf17a59c..31683d2c44 100644 --- a/servers/slapd/back-mdb/attr.c +++ b/servers/slapd/back-mdb/attr.c @@ -162,8 +162,10 @@ mdb_attr_dbs_close( { int i; for ( i=0; imi_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