]> git.sur5r.net Git - openldap/commitdiff
Use ldap_pvt_thread_pool_tid()
authorHoward Chu <hyc@openldap.org>
Tue, 2 May 2006 00:58:05 +0000 (00:58 +0000)
committerHoward Chu <hyc@openldap.org>
Tue, 2 May 2006 00:58:05 +0000 (00:58 +0000)
servers/slapd/connection.c

index 46c28dfc1e358f0e71928b5f577f952614cfd2ab..bd3f6983ddefe255508ee0881682868eab599d0b 100644 (file)
@@ -1233,6 +1233,7 @@ connection_operation( void *ctx, void *arg_v )
        ldap_pvt_thread_mutex_unlock( &slap_counters.sc_ops_mutex );
 
        op->o_threadctx = ctx;
+       op->o_tid = ldap_pvt_thread_pool_tid( ctx );
 
        switch ( tag ) {
        case LDAP_REQ_BIND:
@@ -2253,6 +2254,7 @@ connection_fake_init(
        op->o_tmpmemctx = slap_sl_mem_create(SLAP_SLAB_SIZE, SLAP_SLAB_STACK, ctx);
        op->o_tmpmfuncs = &slap_sl_mfuncs;
        op->o_threadctx = ctx;
+       op->o_tid = ldap_pvt_thread_pool_tid( ctx );
 
        op->o_conn = conn;
        op->o_connid = op->o_conn->c_connid;