Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Joe Martin
OpenLDAP
Commits
17900184
Commit
17900184
authored
Nov 22, 2017
by
Ondřej Kuzník
Committed by
Ondřej Kuzník
Nov 17, 2020
Browse files
Record operation activity times
parent
a0ec50b3
Changes
3
Hide whitespace changes
Inline
Side-by-side
servers/lloadd/operation.c
View file @
17900184
...
...
@@ -465,6 +465,7 @@ operation_init( Connection *c, BerElement *ber )
op
->
o_client
=
c
;
op
->
o_client_connid
=
c
->
c_connid
;
op
->
o_ber
=
ber
;
op
->
o_start
=
slap_get_time
();
ldap_pvt_thread_mutex_init
(
&
op
->
o_mutex
);
ldap_pvt_thread_mutex_init
(
&
op
->
o_link_mutex
);
...
...
servers/lloadd/slap.h
View file @
17900184
...
...
@@ -446,6 +446,7 @@ struct Operation {
unsigned
long
o_upstream_connid
;
int
o_upstream_live
,
o_upstream_refcnt
;
ber_int_t
o_upstream_msgid
;
time_t
o_last_response
;
/* Protects o_client, o_upstream pointers before we lock their c_mutex if
* we don't know they are still alive */
...
...
@@ -456,6 +457,7 @@ struct Operation {
* op->o_{client,upstream}->c_mutex */
enum
op_state
o_freeing
;
ber_tag_t
o_tag
;
time_t
o_start
;
BerElement
*
o_ber
;
BerValue
o_request
,
o_ctrls
;
...
...
servers/lloadd/upstream.c
View file @
17900184
...
...
@@ -188,6 +188,7 @@ handle_one_response( Connection *c )
}
}
if
(
op
)
{
op
->
o_last_response
=
slap_get_time
();
Debug
(
LDAP_DEBUG_STATS2
,
"handle_one_response: "
"upstream connid=%lu, processing response for "
"client connid=%lu, msgid=%d
\n
"
,
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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