mirror of
https://git.openldap.org/openldap/openldap.git
synced 2024-12-21 03:10:25 +08: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
@ -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 New Issue
Block a user