mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-01-30 13:30:57 +08:00
ITS#5859 fix IDL cache for hdb DB with empty suffix
This commit is contained in:
parent
e288e01e5e
commit
64d0cb9cf6
@ -623,6 +623,11 @@ hdb_dn2id_add(
|
||||
tmp[1] = eip->bei_id;
|
||||
bdb_idl_cache_add_id( bdb, db, &key, e->e_id );
|
||||
}
|
||||
/* Handle DB with empty suffix */
|
||||
if ( !op->o_bd->be_suffix[0].bv_len && eip ) {
|
||||
tmp[1] = eip->bei_id;
|
||||
bdb_idl_cache_add_id( bdb, db, &key, e->e_id );
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@ -722,6 +727,11 @@ func_leave:
|
||||
tmp[1] = eip->bei_id;
|
||||
bdb_idl_cache_del_id( bdb, db, &key, e->e_id );
|
||||
}
|
||||
/* Handle DB with empty suffix */
|
||||
if ( !op->o_bd->be_suffix[0].bv_len && eip ) {
|
||||
tmp[1] = eip->bei_id;
|
||||
bdb_idl_cache_del_id( bdb, db, &key, e->e_id );
|
||||
}
|
||||
}
|
||||
}
|
||||
Debug( LDAP_DEBUG_TRACE, "<= hdb_dn2id_delete 0x%lx: %d\n", e->e_id, rc, 0 );
|
||||
|
Loading…
Reference in New Issue
Block a user