]> git.ipfire.org Git - thirdparty/openldap.git/commitdiff
Delete attribute indices upon delete
authorKurt Zeilenga <kurt@openldap.org>
Tue, 9 Oct 2001 20:55:33 +0000 (20:55 +0000)
committerKurt Zeilenga <kurt@openldap.org>
Tue, 9 Oct 2001 20:55:33 +0000 (20:55 +0000)
servers/slapd/back-ldbm/delete.c
servers/slapd/back-ldbm/modify.c

index dd0f7fc971f0136ee0e4fd40d1fad6d663f35b69..6ff7a967a89dac5dcf22d4477d2e75fdb5ebe84d 100644 (file)
@@ -150,6 +150,9 @@ ldbm_back_delete(
                goto return_results;
        }
 
+       /* delete attribute indices */
+       (void) index_entry_del( be, e, e->e_attrs );
+
        send_ldap_result( conn, op, LDAP_SUCCESS,
                NULL, NULL, NULL, NULL );
        rc = 0;
index 0dc69c133ee185ca916612fc97891f439e191292..bd0c0c5e7cf833f8d487a2ed132a8010fb6b44ac 100644 (file)
@@ -44,7 +44,7 @@ int ldbm_modify_internal(
        Modifications   *ml;
        Attribute       *save_attrs;
 
-       Debug(LDAP_DEBUG_TRACE, "ldbm_modify_internal:\n", 0, 0, 0);
+       Debug(LDAP_DEBUG_TRACE, "ldbm_modify_internal: %s\n", dn, 0, 0);
 
        if ( !acl_check_modlist( be, conn, op, e, modlist )) {
                return LDAP_INSUFFICIENT_ACCESS;