ITS#7416 make sure to reopen attr DBs after env reopen

This commit is contained in:
Howard Chu 2012-10-11 16:45:42 -07:00
parent 1b393b7421
commit 970e7f8199

View 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