]> git.sur5r.net Git - openldap/commitdiff
there might definitely be concurrency issues, but it's not pooled connections' fault
authorPierangelo Masarati <ando@openldap.org>
Sat, 23 Jul 2005 22:03:35 +0000 (22:03 +0000)
committerPierangelo Masarati <ando@openldap.org>
Sat, 23 Jul 2005 22:03:35 +0000 (22:03 +0000)
servers/slapd/back-ldap/bind.c

index 3c5e3f1dfca109b2f934096d934615c182df0aa4..251387218f34b66e3c6aec310cafda581c85ff3b 100644 (file)
 
 #define PRINT_CONNTREE 0
 
-/*
- * FIXME: temporarily disable pooled connections, as there seem to be
- * some concurrency problem
- */
-/* #undef LDAP_BACK_POOLED_CONNS */
-
 static LDAP_REBIND_PROC        ldap_back_rebind;
 
 static int
@@ -425,16 +419,13 @@ ldap_back_getconn( Operation *op, SlapReply *rs, ldap_back_send_t sendok )
        }
        
        /* Internal searches are privileged and shared. So is root. */
-#ifdef LDAP_BACK_POOLED_CONNS
        /* FIXME: there seem to be concurrency issues */
        if ( op->o_do_not_cache || be_isroot( op ) ) {
                lc_curr.lc_local_ndn = op->o_bd->be_rootndn;
                lc_curr.lc_conn = NULL;
                lc_curr.lc_ispriv = 1;
 
-       } else 
-#endif /* LDAP_BACK_POOLED_CONNS */
-       {
+       } else {
                lc_curr.lc_local_ndn = op->o_ndn;
        }