Diff for /servers/slapd/back-bdb/dn2id.c between versions 1.109 and 1.110

version 1.109, 2005/01/11 21:25:52 version 1.110, 2005/01/24 07:21:55
Line 1 Line 1
 /* dn2id.c - routines to deal with the dn2id index */  /* dn2id.c - routines to deal with the dn2id index */
 /* $OpenLDAP: pkg/ldap/servers/slapd/back-bdb/dn2id.c,v 1.107 2005/01/01 19:49:51 kurt Exp $ */  /* $OpenLDAP: pkg/ldap/servers/slapd/back-bdb/dn2id.c,v 1.109 2005/01/11 21:25:52 hyc Exp $ */
 /* This work is part of OpenLDAP Software <http://www.openldap.org/>.  /* This work is part of OpenLDAP Software <http://www.openldap.org/>.
  *   *
  * Copyright 2000-2005 The OpenLDAP Foundation.   * Copyright 2000-2005 The OpenLDAP Foundation.
Line 577  hdb_dn2id_delete( Line 577  hdb_dn2id_delete(
         data.data = d;          data.data = d;
   
         /* Delete our ID from the parent's list */          /* Delete our ID from the parent's list */
         rc = cursor->c_get( cursor, &key, &data, DB_GET_BOTH_RANGE | DB_RMW );          rc = cursor->c_get( cursor, &key, &data, DB_GET_BOTH_RANGE );
         if ( rc == 0 ) {          if ( rc == 0 ) {
                 if ( !strcmp( d->nrdn, BEI(e)->bei_nrdn.bv_val ))                  if ( !strcmp( d->nrdn, BEI(e)->bei_nrdn.bv_val ))
                         rc = cursor->c_del( cursor, 0 );                          rc = cursor->c_del( cursor, 0 );
Line 591  hdb_dn2id_delete( Line 591  hdb_dn2id_delete(
          */           */
         if ( rc == 0 ) {          if ( rc == 0 ) {
                 BDB_ID2DISK( e->e_id, &nid );                  BDB_ID2DISK( e->e_id, &nid );
                 rc = cursor->c_get( cursor, &key, &data, DB_SET | DB_RMW );                  rc = cursor->c_get( cursor, &key, &data, DB_SET );
                 if ( rc == 0 )                  if ( rc == 0 )
                         rc = cursor->c_del( cursor, 0 );                          rc = cursor->c_del( cursor, 0 );
         }          }

Removed from v.1.109  
changed lines
  Added in v.1.110


______________
© Copyright 1998-2020, OpenLDAP Foundation, info@OpenLDAP.org