]> git.ipfire.org Git - thirdparty/openldap.git/commitdiff
Apply back-ldbm delete id bugfix from -devel.
authorKurt Zeilenga <kurt@openldap.org>
Sun, 22 Nov 1998 22:21:52 +0000 (22:21 +0000)
committerKurt Zeilenga <kurt@openldap.org>
Sun, 22 Nov 1998 22:21:52 +0000 (22:21 +0000)
servers/slapd/back-ldbm/delete.c
servers/slapd/back-ldbm/id2children.c

index 32317c922f1704e2dd36816771492c6677aa0531..7e0008ba802e50b576011d07c2f0017e6a36878f 100644 (file)
@@ -93,6 +93,8 @@ ldbm_back_delete(
 
        /* free entry and writer lock */
        cache_return_entry_w( &li->li_cache, e );
+       if ( p )
+               cache_return_entry_r( &li->li_cache, p );
 
        send_ldap_result( conn, op, LDAP_SUCCESS, "", "" );
 
index cd0cc7a6dfe58d86adf4117c97189e8e5dd75a85..23e64f755946199124e05b0b2cccc2f84152502e 100644 (file)
@@ -77,7 +77,7 @@ id2children_remove(
        if ( (db = ldbm_cache_open( be, "id2children", LDBM_SUFFIX,
            LDBM_WRCREAT )) == NULL ) {
                Debug( LDAP_DEBUG_ANY,
-                   "<= id2children_add -1 could not open \"id2children%s\"\n",
+                   "<= id2children_remove -1 could not open \"id2children%s\"\n",
                    LDBM_SUFFIX, 0, 0 );
                return( -1 );
        }
@@ -88,7 +88,7 @@ id2children_remove(
        key.dsize = strlen( buf ) + 1;
 
        if ( idl_delete_key( be, db, key, e->e_id ) != 0 ) {
-               Debug( LDAP_DEBUG_TRACE, "<= id2children_add -1 (idl_insert)\n",
+               Debug( LDAP_DEBUG_TRACE, "<= id2children_remove -1 (idl_insert)\n",
                    0, 0, 0 );
                ldbm_cache_close( be, db );
                return( -1 );
@@ -96,7 +96,7 @@ id2children_remove(
 
        ldbm_cache_close( be, db );
 
-       Debug( LDAP_DEBUG_TRACE, "<= id2children_add 0\n", 0, 0, 0 );
+       Debug( LDAP_DEBUG_TRACE, "<= id2children_remove 0\n", 0, 0, 0 );
        return( 0 );
 }