mirror of
https://git.openldap.org/openldap/openldap.git
synced 2026-01-25 08:12:54 -05:00
Adjust backend operation counting
This commit is contained in:
parent
baf1feab82
commit
95df8a1ec8
1 changed files with 8 additions and 0 deletions
|
|
@ -755,10 +755,18 @@ request_process( Connection *client, Operation *op )
|
|||
|
||||
fail:
|
||||
if ( upstream ) {
|
||||
Backend *b;
|
||||
|
||||
ldap_pvt_thread_mutex_unlock( &upstream->c_io_mutex );
|
||||
CONNECTION_LOCK_DECREF(upstream);
|
||||
upstream->c_n_ops_executing--;
|
||||
b = (Backend *)upstream->c_private;
|
||||
UPSTREAM_UNLOCK_OR_DESTROY(upstream);
|
||||
|
||||
ldap_pvt_thread_mutex_lock( &b->b_mutex );
|
||||
b->b_n_ops_executing--;
|
||||
ldap_pvt_thread_mutex_unlock( &b->b_mutex );
|
||||
|
||||
operation_send_reject( op, LDAP_OTHER, "internal error", 0 );
|
||||
}
|
||||
CONNECTION_LOCK_DECREF(client);
|
||||
|
|
|
|||
Loading…
Reference in a new issue