]> git.sur5r.net Git - openldap/commitdiff
count candidate unavailable (quarantined) targets
authorPierangelo Masarati <ando@openldap.org>
Sat, 8 Jul 2006 12:42:09 +0000 (12:42 +0000)
committerPierangelo Masarati <ando@openldap.org>
Sat, 8 Jul 2006 12:42:09 +0000 (12:42 +0000)
servers/slapd/back-meta/conn.c

index b2a4cf882b730e3b97b208bde88ba6b2e0e202cf..a543661b6c6d33c4980bf2e279be9e4f44b478e9 100644 (file)
@@ -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 {
                                
                                        /*