Use DB_RMW when deleting dn2id elements

This commit is contained in:
Howard Chu 2003-04-30 07:46:58 +00:00
parent 7e1a91340c
commit 35d18d4ab0

View 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 );
}