mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-12-26 17:49:59 -05:00
ITS#7870 ignore index DBs in slapcat
This commit is contained in:
parent
33e12f4de3
commit
a01d3f965b
1 changed files with 9 additions and 4 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in a new issue