mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-12-25 09:09:54 -05:00
Reset Entry->e_ocflags to 0 if objectClass attr is modified.
(Only an issue with entry caching...)
This commit is contained in:
parent
eab49fe5da
commit
a8658a8163
2 changed files with 10 additions and 0 deletions
|
|
@ -117,6 +117,11 @@ int bdb_modify_internal(
|
|||
return err;
|
||||
}
|
||||
|
||||
/* If objectClass was modified, reset the flags */
|
||||
if ( mod->sm_desc == slap_schema.si_ad_objectClass ) {
|
||||
e->e_ocflags = 0;
|
||||
}
|
||||
|
||||
/* check if modified attribute was indexed */
|
||||
err = bdb_index_is_indexed( be, mod->sm_desc );
|
||||
if ( err == LDAP_SUCCESS ) {
|
||||
|
|
|
|||
|
|
@ -187,6 +187,11 @@ int ldbm_modify_internal(
|
|||
goto exit;
|
||||
}
|
||||
|
||||
/* If objectClass was modified, reset the flags */
|
||||
if ( mod->sm_desc == slap_schema.si_ad_objectClass ) {
|
||||
e->e_ocflags = 0;
|
||||
}
|
||||
|
||||
/* check if modified attribute was indexed */
|
||||
rc = index_is_indexed( be, mod->sm_desc );
|
||||
if ( rc == LDAP_SUCCESS ) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue