mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-12-28 02:29:34 -05:00
ITS#9789 slapo-vc: Reset op->o_counters every time we migrate to a new thread
This commit is contained in:
parent
f5d86968c7
commit
209ee9b082
1 changed files with 2 additions and 4 deletions
|
|
@ -289,16 +289,14 @@ vc_exop(
|
|||
goto done;
|
||||
}
|
||||
conn->refcnt++;
|
||||
operation_counters_init( conn->op, op->o_threadctx );
|
||||
ldap_pvt_thread_mutex_unlock( &vc_mutex );
|
||||
|
||||
} else {
|
||||
void *thrctx;
|
||||
|
||||
conn = (vc_conn_t *)SLAP_CALLOC( 1, sizeof( vc_conn_t ) );
|
||||
conn->refcnt = 1;
|
||||
|
||||
thrctx = ldap_pvt_thread_pool_context();
|
||||
connection_fake_init2( &conn->connbuf, &conn->opbuf, thrctx, 0 );
|
||||
connection_fake_init2( &conn->connbuf, &conn->opbuf, op->o_threadctx, 0 );
|
||||
conn->op = &conn->opbuf.ob_op;
|
||||
snprintf( conn->op->o_log_prefix, sizeof( conn->op->o_log_prefix ),
|
||||
"%s VERIFYCREDENTIALS", op->o_log_prefix );
|
||||
|
|
|
|||
Loading…
Reference in a new issue