mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-12-29 02:59:34 -05:00
ITS#10168 back-mdb: cleanup index setup
Nop index setup when index config resulted in no configured indices
This commit is contained in:
parent
10456f5850
commit
015f2937ba
2 changed files with 6 additions and 0 deletions
|
|
@ -98,6 +98,9 @@ mdb_attr_dbs_open(
|
|||
int i, flags;
|
||||
int rc;
|
||||
|
||||
if ( !mdb->mi_nattrs )
|
||||
return 0;
|
||||
|
||||
txn = tx0;
|
||||
if ( txn == NULL ) {
|
||||
rc = mdb_txn_begin( mdb->mi_dbenv, NULL, 0, &txn );
|
||||
|
|
|
|||
|
|
@ -390,6 +390,9 @@ mdb_setup_indexer( struct mdb_info *mdb )
|
|||
int i, rc, changed = 0;
|
||||
unsigned short s;
|
||||
|
||||
if ( !mdb->mi_nattrs )
|
||||
return 0;
|
||||
|
||||
rc = mdb_txn_begin( mdb->mi_dbenv, NULL, 0, &txn );
|
||||
if ( rc )
|
||||
return rc;
|
||||
|
|
|
|||
Loading…
Reference in a new issue