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
Tero Saarni
OpenLDAP
Commits
7e6bf0cb
Commit
7e6bf0cb
authored
Jul 09, 2014
by
Howard Chu
Committed by
Quanah Gibson-Mount
Jul 10, 2014
Browse files
Add missing mdb_strerror calls to debug msgs
parent
0e104da4
Changes
1
Hide whitespace changes
Inline
Side-by-side
servers/slapd/back-mdb/init.c
View file @
7e6bf0cb
...
...
@@ -176,18 +176,18 @@ mdb_db_open( BackendDB *be, ConfigReply *cr )
if
(
rc
)
{
Debug
(
LDAP_DEBUG_ANY
,
LDAP_XSTRING
(
mdb_db_open
)
": database
\"
%s
\"
cannot be opened
, err
%d. "
LDAP_XSTRING
(
mdb_db_open
)
": database
\"
%s
\"
cannot be opened
: %s (
%d
)
. "
"Restore from backup!
\n
"
,
be
->
be_suffix
[
0
].
bv_val
,
rc
,
0
);
be
->
be_suffix
[
0
].
bv_val
,
mdb_strerror
(
rc
)
,
rc
);
goto
fail
;
}
rc
=
mdb_txn_begin
(
mdb
->
mi_dbenv
,
NULL
,
flags
&
MDB_RDONLY
,
&
txn
);
if
(
rc
)
{
Debug
(
LDAP_DEBUG_ANY
,
LDAP_XSTRING
(
mdb_db_open
)
": database
\"
%s
\"
cannot be opened
, err
%d. "
LDAP_XSTRING
(
mdb_db_open
)
": database
\"
%s
\"
cannot be opened
: %s (
%d
)
. "
"Restore from backup!
\n
"
,
be
->
be_suffix
[
0
].
bv_val
,
rc
,
0
);
be
->
be_suffix
[
0
].
bv_val
,
mdb_strerror
(
rc
)
,
rc
);
goto
fail
;
}
...
...
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