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

diff --git a/CHANGES b/CHANGES
index dd8b4e0f72240c3a83b8f19de9bb616f864ea639..ef4bcd08ff7267f2a56f773ec182f0289012f094 100644 (file)
--- a/CHANGES
+++ b/CHANGES
@@ -1,4 +1,5 @@
 OpenLDAP 2.3 Change Log
+       Fixed slapd-ldap C-API code tests (ITS#4808)
 
 OpenLDAP 2.3.33 Release (2007/01/17)
        Fixed slapd syncrepl error logging with delta-syncrepl
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 */