From: Howard Chu Date: Wed, 30 Apr 2003 07:46:58 +0000 (+0000) Subject: Use DB_RMW when deleting dn2id elements X-Git-Tag: OPENLDAP_REL_ENG_2_2_0ALPHA~200 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=35d18d4ab0edbb89d0acc2aec703d47f8d3f0873;p=openldap Use DB_RMW when deleting dn2id elements --- diff --git a/servers/slapd/back-bdb/dn2id.c b/servers/slapd/back-bdb/dn2id.c index 88b468e6e9..78a14c26b7 100644 --- a/servers/slapd/back-bdb/dn2id.c +++ b/servers/slapd/back-bdb/dn2id.c @@ -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 ); }