]> git.sur5r.net Git - openldap/commitdiff
Use DB_RMW when deleting dn2id elements
authorHoward Chu <hyc@openldap.org>
Wed, 30 Apr 2003 07:46:58 +0000 (07:46 +0000)
committerHoward Chu <hyc@openldap.org>
Wed, 30 Apr 2003 07:46:58 +0000 (07:46 +0000)
servers/slapd/back-bdb/dn2id.c

index 88b468e6e922333bec015412b3284d064751547a..78a14c26b788a99857d5f7575d4ff11d8af4fdbc 100644 (file)
@@ -698,7 +698,7 @@ bdb_dn2id_delete(
         */
        if ( rc == 0 ) {
                key.data = &e->e_id;
-               rc = cursor->c_get( cursor, &key, &data, DB_SET );
+               rc = cursor->c_get( cursor, &key, &data, DB_SET | DB_RMW );
                if ( rc == 0 )
                        rc = cursor->c_del( cursor, 0 );
        }