mirror of
https://git.openldap.org/openldap/openldap.git
synced 2026-01-01 20:49:35 -05:00
Fix online reconfig
maxreaders/maxsize was not re-opening because cleanup call was missing online indexer should abort txn after index failure
This commit is contained in:
parent
8fe328dd51
commit
e5864927ae
1 changed files with 9 additions and 2 deletions
|
|
@ -177,6 +177,9 @@ mdb_online_index( void *ctx, void *arg )
|
|||
if ( rc == 0 ) {
|
||||
rc = mdb_txn_commit( txn );
|
||||
txn = NULL;
|
||||
} else {
|
||||
mdb_txn_abort( txn );
|
||||
txn = NULL;
|
||||
}
|
||||
if ( rc )
|
||||
break;
|
||||
|
|
@ -564,14 +567,18 @@ mdb_cf_gen( ConfigArgs *c )
|
|||
|
||||
case MDB_MAXREADERS:
|
||||
mdb->mi_readers = c->value_int;
|
||||
if ( mdb->mi_flags & MDB_IS_OPEN )
|
||||
if ( mdb->mi_flags & MDB_IS_OPEN ) {
|
||||
mdb->mi_flags |= MDB_RE_OPEN;
|
||||
c->cleanup = mdb_cf_cleanup;
|
||||
}
|
||||
break;
|
||||
|
||||
case MDB_MAXSIZE:
|
||||
mdb->mi_mapsize = c->value_ulong;
|
||||
if ( mdb->mi_flags & MDB_IS_OPEN )
|
||||
if ( mdb->mi_flags & MDB_IS_OPEN ) {
|
||||
mdb->mi_flags |= MDB_RE_OPEN;
|
||||
c->cleanup = mdb_cf_cleanup;
|
||||
}
|
||||
break;
|
||||
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue