From b604ef8d52568d19c4914c577670bb7155420661 Mon Sep 17 00:00:00 2001 From: Pierangelo Masarati Date: Wed, 17 Jan 2007 21:52:13 +0000 Subject: [PATCH] test mapped error code (ITS#4808) --- servers/slapd/back-ldap/delete.c | 2 +- servers/slapd/back-ldap/modrdn.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/servers/slapd/back-ldap/delete.c b/servers/slapd/back-ldap/delete.c index fa6ff873ac..4f1e67ddf8 100644 --- a/servers/slapd/back-ldap/delete.c +++ b/servers/slapd/back-ldap/delete.c @@ -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 */ diff --git a/servers/slapd/back-ldap/modrdn.c b/servers/slapd/back-ldap/modrdn.c index a578dd19ab..8fa02ef6e2 100644 --- a/servers/slapd/back-ldap/modrdn.c +++ b/servers/slapd/back-ldap/modrdn.c @@ -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 */ -- 2.39.5