Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ruanhaishen
redis
Commits
320e3718
Commit
320e3718
authored
Apr 10, 2023
by
Vitaly Arbuzov
Browse files
Init monotime for unit tests
parent
a51d3dc0
Changes
1
Show whitespace changes
Inline
Side-by-side
src/server.c
View file @
320e3718
...
...
@@ -6993,6 +6993,7 @@ int main(int argc, char **argv) {
char
config_from_stdin
=
0
;
#ifdef REDIS_TEST
monotonicInit
();
/* Required for dict tests, that are relying on monotime during dict rehashing. */
if
(
argc
>=
3
&&
!
strcasecmp
(
argv
[
1
],
"test"
))
{
int
flags
=
0
;
for
(
j
=
3
;
j
<
argc
;
j
++
)
{
...
...
Write
Preview
Markdown
is supported
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