From d16c9aacd7db538a1af5c2ec9997f2d21a4d971a Mon Sep 17 00:00:00 2001 From: Pierangelo Masarati Date: Sat, 8 Jul 2006 12:42:09 +0000 Subject: [PATCH] count candidate unavailable (quarantined) targets --- servers/slapd/back-meta/conn.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/servers/slapd/back-meta/conn.c b/servers/slapd/back-meta/conn.c index b2a4cf882b..a543661b6c 100644 --- a/servers/slapd/back-meta/conn.c +++ b/servers/slapd/back-meta/conn.c @@ -1192,6 +1192,13 @@ retry_lock2:; Debug( LDAP_DEBUG_TRACE, "%s: meta_back_getconn[%d]\n", op->o_log_prefix, i, 0 ); + } else if ( lerr == LDAP_UNAVAILABLE ) { + META_CANDIDATE_SET( &candidates[ i ] ); + candidates[ i ].sr_err = LDAP_UNAVAILABLE; + + Debug( LDAP_DEBUG_TRACE, "%s: meta_back_getconn[%d] unavailable\n", + op->o_log_prefix, i, 0 ); + } else { /* -- 2.39.5