be->be_private = bdb;
be->be_cf_ocs = be->bd_info->bi_cf_ocs;
-#ifdef SLAPD_MONITOR
- rc = bdb_monitor_init( be );
-#else
- rc = 0;
-#endif
+ rc = bdb_monitor_db_init( be );
return rc;
}
XLOCK_ID(bdb->bi_dbenv, &bdb->bi_cache.c_locker);
}
-#ifdef SLAPD_MONITOR
/* monitor setup */
- rc = bdb_monitor_open( be );
+ rc = bdb_monitor_db_open( be );
if ( rc != 0 ) {
goto fail;
}
-#endif
bdb->bi_flags |= BDB_IS_OPEN;
struct bdb_db_info *db;
bdb_idl_cache_entry_t *entry, *next_entry;
-#ifdef SLAPD_MONITOR
/* monitor handling */
- (void)bdb_monitor_close( be );
-#endif
+ (void)bdb_monitor_db_close( be );
bdb->bi_flags &= ~BDB_IS_OPEN;
{
struct bdb_info *bdb = (struct bdb_info *) be->be_private;
+ /* monitor handling */
+ (void)bdb_monitor_db_close( be );
+
if( bdb->bi_dbenv_home ) ch_free( bdb->bi_dbenv_home );
if( bdb->bi_db_config_path ) ch_free( bdb->bi_db_config_path );
bi->bi_connection_init = 0;
bi->bi_connection_destroy = 0;
-#ifdef SLAPD_MONITOR
- /*
- * initialize monitor stuff
- */
- rc = bdb_monitor_initialize();
- if ( rc ) {
- return rc;
- }
-#endif
-
rc = bdb_back_init_cf( bi );
return rc;