Commit 8b1fb962 authored by Howard Chu's avatar Howard Chu
Browse files

ITS#8725 connection fixes

Fix op_finish, must resched connection to pick up pending ops.
Fix op completion counter.
parent 63308ef6
......@@ -1045,6 +1045,10 @@ connection_op_finish( Operation *op )
{
Connection *conn = op->o_conn;
void *memctx_null = NULL;
slap_op_t opidx = slap_req2op( op->o_tag );
assert( opidx != SLAP_OP_LAST );
INCR_OP_COMPLETED( opidx );
ldap_pvt_thread_mutex_lock( &conn->c_mutex );
......@@ -1057,6 +1061,7 @@ connection_op_finish( Operation *op )
LDAP_STAILQ_NEXT(op, o_next) = NULL;
conn->c_n_ops_executing--;
conn->c_n_ops_completed++;
connection_resched( conn );
ldap_pvt_thread_mutex_unlock( &conn->c_mutex );
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment