mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-01-06 10:46:21 +08:00
ITS#8977 make sure olcBackend entry is created
This commit is contained in:
parent
c4df431c6c
commit
ec411582d6
@ -161,12 +161,15 @@ mdb_bk_cfg( ConfigArgs *c )
|
|||||||
else
|
else
|
||||||
rc = 1;
|
rc = 1;
|
||||||
} else if ( c->op == LDAP_MOD_DELETE ) {
|
} else if ( c->op == LDAP_MOD_DELETE ) {
|
||||||
MDB_idl_logn = 0;
|
/* We expect to immediately be followed by an Add, but */
|
||||||
|
MDB_idl_logn = MDB_IDL_LOGN; /* return to default for safety */
|
||||||
mdb_idl_reset();
|
mdb_idl_reset();
|
||||||
|
c->bi->bi_private = 0;
|
||||||
} else {
|
} else {
|
||||||
if ( c->value_int >= MDB_IDL_LOGN && c->value_int < sizeof(int) * CHAR_BIT ) {
|
if ( c->value_int >= MDB_IDL_LOGN && c->value_int < sizeof(int) * CHAR_BIT ) {
|
||||||
MDB_idl_logn = c->value_int;
|
MDB_idl_logn = c->value_int;
|
||||||
mdb_idl_reset();
|
mdb_idl_reset();
|
||||||
|
c->bi->bi_private = (void *)8; /* non-NULL to show we're using it */
|
||||||
} else {
|
} else {
|
||||||
rc = 1;
|
rc = 1;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user