Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
openldap
OpenLDAP
Commits
cf99e06e
Commit
cf99e06e
authored
Apr 27, 2021
by
Howard Chu
Committed by
Quanah Gibson-Mount
Apr 30, 2021
Browse files
ITS
#9537
slap_op_time: avoid duplicates across restarts
Initialize last_ times with current time sec & usec
parent
b8d3bdb9
Changes
1
Hide whitespace changes
Inline
Side-by-side
servers/slapd/operation.c
View file @
cf99e06e
...
...
@@ -43,7 +43,11 @@ static int last_incr;
void
slap_op_init
(
void
)
{
struct
timeval
tv
;
ldap_pvt_thread_mutex_init
(
&
slap_op_mutex
);
gettimeofday
(
&
tv
,
NULL
);
last_time
=
tv
.
tv_sec
;
last_incr
=
tv
.
tv_usec
;
}
void
slap_op_destroy
(
void
)
...
...
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