]> git.sur5r.net Git - openldap/commitdiff
Remove c_sasl_bindmutex, Binds are already serialized.
authorHoward Chu <hyc@openldap.org>
Mon, 26 Aug 2002 22:20:30 +0000 (22:20 +0000)
committerHoward Chu <hyc@openldap.org>
Mon, 26 Aug 2002 22:20:30 +0000 (22:20 +0000)
servers/slapd/bind.c
servers/slapd/connection.c
servers/slapd/slap.h

index 9d8f6ba159786fa900a97ebddd1d28411befb35f..e4e8dd5e1891fd45e6b990c20c47d3530915b2a5 100644 (file)
@@ -232,7 +232,6 @@ do_bind(
        }
 
        /* Set the bindop for the benefit of in-directory SASL lookups */
-       ldap_pvt_thread_mutex_lock( &conn->c_sasl_bindmutex );
        conn->c_sasl_bindop = op;
 
        if ( method == LDAP_AUTH_SASL ) {
@@ -574,10 +573,7 @@ do_bind(
        }
 
 cleanup:
-       if( conn->c_sasl_bindop != NULL ) {
-               conn->c_sasl_bindop = NULL;
-               ldap_pvt_thread_mutex_unlock( &conn->c_sasl_bindmutex );
-       }
+       conn->c_sasl_bindop = NULL;
 
        if( pdn.bv_val != NULL ) {
                free( pdn.bv_val );
index 374bc73f5cc861f9ac833e6d7090fab001678d01..e59d4f047b695f617fb1d0198fcaaeb2b4116ba6 100644 (file)
@@ -139,7 +139,6 @@ int connections_destroy(void)
                        ber_sockbuf_free( connections[i].c_sb );
                        ldap_pvt_thread_mutex_destroy( &connections[i].c_mutex );
                        ldap_pvt_thread_mutex_destroy( &connections[i].c_write_mutex );
-                       ldap_pvt_thread_mutex_destroy( &connections[i].c_sasl_bindmutex );
                        ldap_pvt_thread_cond_destroy( &connections[i].c_write_cv );
                }
        }
@@ -451,7 +450,6 @@ long connection_init(
                /* should check status of thread calls */
                ldap_pvt_thread_mutex_init( &c->c_mutex );
                ldap_pvt_thread_mutex_init( &c->c_write_mutex );
-               ldap_pvt_thread_mutex_init( &c->c_sasl_bindmutex );
                ldap_pvt_thread_cond_init( &c->c_write_cv );
 
                c->c_struct_state = SLAP_C_UNUSED;
index fc1bd20a43d3c92e379b3e33ea4cb68e44d5d85c..847174e733166a6b32bbe10f6668ae42812c2229 100644 (file)
@@ -1620,7 +1620,6 @@ typedef struct slap_conn {
        void    *c_sasl_context;        /* SASL session context */
        void    *c_sasl_extra;          /* SASL session extra stuff */
        struct slap_op  *c_sasl_bindop; /* set to current op if it's a bind */
-       ldap_pvt_thread_mutex_t c_sasl_bindmutex;       /* lock for bindop */
 
        PagedResultsState c_pagedresults_state; /* paged result state */