Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Joe Martin
OpenLDAP
Commits
9af1d2ce
Commit
9af1d2ce
authored
Aug 26, 2009
by
Quanah Gibson-Mount
Browse files
tell what database initialization failed based on the suffix
parent
a6e2e273
Changes
1
Hide whitespace changes
Inline
Side-by-side
servers/slapd/backend.c
View file @
9af1d2ce
...
...
@@ -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
);
}
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment