void
mdb_attr_dbs_close(
- struct mdb_info *mdb,
- MDB_txn *txn
+ struct mdb_info *mdb
)
{
int i;
for ( i=0; i<mdb->mi_nattrs; i++ )
if ( mdb->mi_attrs[i]->ai_dbi )
- mdb_close( txn, mdb->mi_attrs[i]->ai_dbi );
+ mdb_close( mdb->mi_dbenv, mdb->mi_attrs[i]->ai_dbi );
}
int
{
int rc;
struct mdb_info *mdb = (struct mdb_info *) be->be_private;
- MDB_txn *txn;
/* monitor handling */
(void)mdb_monitor_db_close( be );
if ( mdb->mi_dbenv ) {
if ( mdb->mi_dbis[0] ) {
int i;
- rc = mdb_txn_begin( mdb->mi_dbenv, MDB_RDONLY, &txn );
- mdb_attr_dbs_close( mdb, txn );
+ mdb_attr_dbs_close( mdb );
for ( i=0; i<MDB_NDB; i++ )
- mdb_close( txn, mdb->mi_dbis[i] );
-
- mdb_txn_abort( txn );
+ mdb_close( mdb->mi_dbenv, mdb->mi_dbis[i] );
/* force a sync, but not if we were ReadOnly,
* and not in Quick mode.
AttributeDescription *desc, int *insert );
int mdb_attr_dbs_open( BackendDB *be, MDB_txn *txn, struct config_reply_s *cr );
-void mdb_attr_dbs_close( struct mdb_info *mdb, MDB_txn *txn );
+void mdb_attr_dbs_close( struct mdb_info *mdb );
int mdb_attr_index_config LDAP_P(( struct mdb_info *mdb,
const char *fname, int lineno,