Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
HAMANO Tsukasa
OpenLDAP
Commits
d877251b
Commit
d877251b
authored
Aug 06, 2021
by
Howard Chu
Browse files
(From ITS#8958) allow 2.5 slapcat to read 2.4 DB
parent
6237ae17
Changes
1
Hide whitespace changes
Inline
Side-by-side
servers/slapd/back-mdb/init.c
View file @
d877251b
...
...
@@ -215,15 +215,18 @@ mdb_db_open( BackendDB *be, ConfigReply *cr )
&
mdb
->
mi_dbis
[
i
]
);
if
(
rc
!=
0
)
{
snprintf
(
cr
->
msg
,
sizeof
(
cr
->
msg
),
"database
\"
%s
\"
: "
"mdb_dbi_open(%s/%s) failed: %s (%d)."
,
be
->
be_suffix
[
0
].
bv_val
,
mdb
->
mi_dbenv_home
,
mdmi_databases
[
i
].
bv_val
,
mdb_strerror
(
rc
),
rc
);
Debug
(
LDAP_DEBUG_ANY
,
LDAP_XSTRING
(
mdb_db_open
)
": %s
\n
"
,
cr
->
msg
);
goto
fail
;
/* when read-only, it's ok for ID2VAL or IDXCKP to not exist */
if
((
flags
&
MDB_CREATE
)
||
(
i
<
MDB_ID2VAL
))
{
snprintf
(
cr
->
msg
,
sizeof
(
cr
->
msg
),
"database
\"
%s
\"
: "
"mdb_dbi_open(%s/%s) failed: %s (%d)."
,
be
->
be_suffix
[
0
].
bv_val
,
mdb
->
mi_dbenv_home
,
mdmi_databases
[
i
].
bv_val
,
mdb_strerror
(
rc
),
rc
);
Debug
(
LDAP_DEBUG_ANY
,
LDAP_XSTRING
(
mdb_db_open
)
": %s
\n
"
,
cr
->
msg
);
goto
fail
;
}
}
if
(
i
==
MDB_ID2ENTRY
)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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