void backend_destroy_one( BackendDB *bd, int dynamic )
{
if ( dynamic ) {
- LDAP_STAILQ_REMOVE(&backendDB, bd, slap_backend_db, be_next );
+ LDAP_STAILQ_REMOVE(&backendDB, bd, BackendDB, be_next );
}
if ( bd->be_syncinfo ) {
}
acl_destroy( bd->be_acl, frontendDB->be_acl );
limits_destroy( bd->be_limits );
- if ( bd->be_replogfile ) {
- ch_free( bd->be_replogfile );
- }
- if ( bd->be_replica_argsfile ) {
- ch_free( bd->be_replica_argsfile );
- }
- if ( bd->be_replica_pidfile ) {
- ch_free( bd->be_replica_pidfile );
- }
- destroy_replica_info( bd );
if ( !BER_BVISNULL( &bd->be_update_ndn ) ) {
ch_free( bd->be_update_ndn.bv_val );
}
free( bd->be_rootpw.bv_val );
}
acl_destroy( bd->be_acl, frontendDB->be_acl );
-
- if ( bd->be_replogfile != NULL ) {
- free( bd->be_replogfile );
- }
- if ( bd->be_replica_argsfile ) {
- ch_free( bd->be_replica_argsfile );
- }
- if ( bd->be_replica_pidfile ) {
- ch_free( bd->be_replica_pidfile );
- }
- assert( bd->be_replica == NULL );
}
return 0;
int idx
)
{
- LDAP_STAILQ_REMOVE(&backendDB, be, slap_backend_db, be_next);
+ LDAP_STAILQ_REMOVE(&backendDB, be, BackendDB, be_next);
backend_db_insert(be, idx);
}
fprintf( stderr, "database init failed (%s)\n", type );
/* If we created and linked this be, remove it and free it */
if ( !b0 ) {
- LDAP_STAILQ_REMOVE(&backendDB, be, slap_backend_db, be_next);
+ LDAP_STAILQ_REMOVE(&backendDB, be, BackendDB, be_next);
ch_free( be );
be = NULL;
nbackends--;