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
Shawn McKinney
OpenLDAP
Commits
145325dc
Commit
145325dc
authored
Apr 27, 2021
by
Howard Chu
Browse files
ITS
#9537
slap_op_time: avoid duplicates across restarts
Initialize last_ times with current time sec & usec
parent
0c90b8c0
Changes
1
Hide whitespace changes
Inline
Side-by-side
servers/slapd/operation.c
View file @
145325dc
...
...
@@ -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
.
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