Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Joe Martin
OpenLDAP
Commits
95df8a1e
Commit
95df8a1e
authored
Jun 26, 2017
by
Ondřej Kuzník
Committed by
Ondřej Kuzník
Nov 17, 2020
Browse files
Adjust backend operation counting
parent
baf1feab
Changes
1
Hide whitespace changes
Inline
Side-by-side
servers/lloadd/operation.c
View file @
95df8a1e
...
...
@@ -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
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment