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
openldap
OpenLDAP
Commits
a01d3f96
Commit
a01d3f96
authored
Jun 03, 2014
by
Howard Chu
Browse files
ITS
#7870
ignore index DBs in slapcat
parent
33e12f4d
Changes
1
Hide whitespace changes
Inline
Side-by-side
servers/slapd/back-mdb/init.c
View file @
a01d3f96
...
...
@@ -265,10 +265,15 @@ mdb_db_open( BackendDB *be, ConfigReply *cr )
goto
fail
;
}
rc
=
mdb_attr_dbs_open
(
be
,
txn
,
cr
);
if
(
rc
)
{
mdb_txn_abort
(
txn
);
goto
fail
;
/* slapcat doesn't need indexes. avoid a failure if
* a configured index wasn't created yet.
*/
if
(
!
(
slapMode
&
SLAP_TOOL_READONLY
)
)
{
rc
=
mdb_attr_dbs_open
(
be
,
txn
,
cr
);
if
(
rc
)
{
mdb_txn_abort
(
txn
);
goto
fail
;
}
}
rc
=
mdb_txn_commit
(
txn
);
...
...
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