mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-12-23 16:19:35 -05:00
tell what database initialization failed based on the suffix
This commit is contained in:
parent
0b44f1fbcf
commit
10a61120ca
1 changed files with 15 additions and 2 deletions
|
|
@ -226,9 +226,22 @@ int backend_startup_one(Backend *be, ConfigReply *cr)
|
|||
(void)backend_set_controls( be );
|
||||
|
||||
} else {
|
||||
char *type = be->bd_info->bi_type;
|
||||
char *suffix = "(null)";
|
||||
|
||||
if ( overlay_is_over( be ) ) {
|
||||
slap_overinfo *oi = (slap_overinfo *)be->bd_info->bi_private;
|
||||
type = oi->oi_orig->bi_type;
|
||||
}
|
||||
|
||||
if ( be->be_suffix != NULL && !BER_BVISNULL( &be->be_suffix[0] ) ) {
|
||||
suffix = be->be_suffix[0].bv_val;
|
||||
}
|
||||
|
||||
Debug( LDAP_DEBUG_ANY,
|
||||
"backend_startup_one: bi_db_open failed! (%d)\n",
|
||||
rc, 0, 0 );
|
||||
"backend_startup_one (type=%s, suffix=\"%s\"): "
|
||||
"bi_db_open failed! (%d)\n",
|
||||
type, suffix, rc );
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue