mirror of
https://git.openldap.org/openldap/openldap.git
synced 2024-12-27 03:20:22 +08:00
ITS#7416 make sure to reopen attr DBs after env reopen
This commit is contained in:
parent
1b393b7421
commit
970e7f8199
@ -162,8 +162,10 @@ mdb_attr_dbs_close(
|
|||||||
{
|
{
|
||||||
int i;
|
int i;
|
||||||
for ( i=0; i<mdb->mi_nattrs; 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_close( mdb->mi_dbenv, mdb->mi_attrs[i]->ai_dbi );
|
||||||
|
mdb->mi_attrs[i]->ai_dbi = 0;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
int
|
int
|
||||||
|
Loading…
Reference in New Issue
Block a user