Reset Entry->e_ocflags to 0 if objectClass attr is modified.

(Only an issue with entry caching...)
This commit is contained in:
Howard Chu 2002-01-19 04:51:42 +00:00
parent eab49fe5da
commit a8658a8163
2 changed files with 10 additions and 0 deletions

View File

@ -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 ) {

View File

@ -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 ) {