]> git.sur5r.net Git - openldap/commitdiff
test mapped error code (ITS#4808)
authorPierangelo Masarati <ando@openldap.org>
Wed, 17 Jan 2007 21:52:13 +0000 (21:52 +0000)
committerPierangelo Masarati <ando@openldap.org>
Wed, 17 Jan 2007 21:52:13 +0000 (21:52 +0000)
servers/slapd/back-ldap/delete.c
servers/slapd/back-ldap/modrdn.c

index fa6ff873ac472c2e8d711d735512fa0794ee2daf..4f1e67ddf87e4a68bb442e1bac69587764596024 100644 (file)
@@ -63,7 +63,7 @@ retry:
        rc = ldap_back_op_result( lc, op, rs, msgid,
                li->li_timeout[ SLAP_OP_DELETE ],
                ( LDAP_BACK_SENDRESULT | retrying ) );
-       if ( rs->sr_err == LDAP_SERVER_DOWN && retrying ) {
+       if ( rs->sr_err == LDAP_UNAVAILABLE && retrying ) {
                retrying &= ~LDAP_BACK_RETRYING;
                if ( ldap_back_retry( &lc, op, rs, LDAP_BACK_SENDERR ) ) {
                        /* if the identity changed, there might be need to re-authz */
index a578dd19ab02ae6540967243df578faace94caa6..8fa02ef6e2a216c6f6cc430095a7984433ec1e91 100644 (file)
@@ -88,7 +88,7 @@ retry:
        rc = ldap_back_op_result( lc, op, rs, msgid,
                li->li_timeout[ SLAP_OP_MODRDN ],
                ( LDAP_BACK_SENDRESULT | retrying ) );
-       if ( rs->sr_err == LDAP_SERVER_DOWN && retrying ) {
+       if ( rs->sr_err == LDAP_UNAVAILABLE && retrying ) {
                retrying &= ~LDAP_BACK_RETRYING;
                if ( ldap_back_retry( &lc, op, rs, LDAP_BACK_SENDERR ) ) {
                        /* if the identity changed, there might be need to re-authz */