Diff for /servers/slapd/back-ldap/modrdn.c between versions 1.38.2.1 and 1.38.2.2

version 1.38.2.1, 2005/01/20 18:03:59 version 1.38.2.2, 2005/01/24 21:28:52
Line 1 Line 1
 /* modrdn.c - ldap backend modrdn function */  /* modrdn.c - ldap backend modrdn function */
 /* $OpenLDAP: pkg/ldap/servers/slapd/back-ldap/modrdn.c,v 1.38 2004/11/13 13:43:30 ando Exp $ */  /* $OpenLDAP: pkg/ldap/servers/slapd/back-ldap/modrdn.c,v 1.41 2005/01/24 08:38:28 ando Exp $ */
 /* This work is part of OpenLDAP Software <http://www.openldap.org/>.  /* This work is part of OpenLDAP Software <http://www.openldap.org/>.
  *   *
  * Copyright 1999-2005 The OpenLDAP Foundation.   * Copyright 1999-2005 The OpenLDAP Foundation.
Line 43  ldap_back_modrdn( Line 43  ldap_back_modrdn(
         int             rc = LDAP_SUCCESS;          int             rc = LDAP_SUCCESS;
         char            *newSup = NULL;          char            *newSup = NULL;
   
         lc = ldap_back_getconn( op, rs );          lc = ldap_back_getconn( op, rs, LDAP_BACK_SENDERR );
         if ( !lc || !ldap_back_dobind( lc, op, rs ) ) {          if ( !lc || !ldap_back_dobind( lc, op, rs, LDAP_BACK_SENDERR ) ) {
                 return( -1 );                  return( -1 );
         }          }
   
Line 67  retry: Line 67  retry:
         rs->sr_err = ldap_rename( lc->lc_ld, op->o_req_ndn.bv_val,          rs->sr_err = ldap_rename( lc->lc_ld, op->o_req_ndn.bv_val,
                         op->orr_newrdn.bv_val, newSup,                          op->orr_newrdn.bv_val, newSup,
                         op->orr_deleteoldrdn, ctrls, NULL, &msgid );                          op->orr_deleteoldrdn, ctrls, NULL, &msgid );
         rc = ldap_back_op_result( lc, op, rs, msgid, 1 );          rc = ldap_back_op_result( lc, op, rs, msgid, LDAP_BACK_SENDRESULT );
         if ( rs->sr_err == LDAP_SERVER_DOWN && do_retry ) {          if ( rs->sr_err == LDAP_SERVER_DOWN && do_retry ) {
                 do_retry = 0;                  do_retry = 0;
                 if ( ldap_back_retry( lc, op, rs ) ) {                  if ( ldap_back_retry( lc, op, rs, LDAP_BACK_SENDERR ) ) {
                         goto retry;                          goto retry;
                 }                  }
         }          }

Removed from v.1.38.2.1  
changed lines
  Added in v.1.38.2.2


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