mirror of
https://git.openldap.org/openldap/openldap.git
synced 2026-02-18 18:18:06 -05:00
ITS#5086
This commit is contained in:
parent
32701cd977
commit
05f7c26dc0
2 changed files with 8 additions and 5 deletions
1
CHANGES
1
CHANGES
|
|
@ -1,6 +1,7 @@
|
|||
OpenLDAP 2.3 Change Log
|
||||
|
||||
OpenLDAP 2.3.41 Engineering
|
||||
Fixed slapd idlcache on adds (ITS#5086)
|
||||
Fixed syncrepl propagation of errors (ITS#5282)
|
||||
Fixed crash when no-op control is used (ITS#5358)
|
||||
|
||||
|
|
|
|||
|
|
@ -696,10 +696,6 @@ bdb_idl_insert_key(
|
|||
|
||||
assert( id != NOID );
|
||||
|
||||
if ( bdb->bi_idl_cache_size ) {
|
||||
bdb_idl_cache_del( bdb, db, key );
|
||||
}
|
||||
|
||||
DBTzero( &data );
|
||||
data.size = sizeof( ID );
|
||||
data.ulen = data.size;
|
||||
|
|
@ -872,6 +868,12 @@ fail:
|
|||
cursor->c_close( cursor );
|
||||
return rc;
|
||||
}
|
||||
/* If key was added (didn't already exist) and using IDL cache,
|
||||
* update key in IDL cache.
|
||||
*/
|
||||
if ( !rc && bdb->bi_idl_cache_max_size ) {
|
||||
bdb_idl_cache_add_id( bdb, db, key, id );
|
||||
}
|
||||
rc = cursor->c_close( cursor );
|
||||
if( rc != 0 ) {
|
||||
Debug( LDAP_DEBUG_ANY, "=> bdb_idl_insert_key: "
|
||||
|
|
@ -904,7 +906,7 @@ bdb_idl_delete_key(
|
|||
}
|
||||
assert( id != NOID );
|
||||
|
||||
if ( bdb->bi_idl_cache_max_size ) {
|
||||
if ( bdb->bi_idl_cache_size ) {
|
||||
bdb_idl_cache_del( bdb, db, key );
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue