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
4af0d7fd
Commit
4af0d7fd
authored
Jan 23, 2020
by
qetu3790
Committed by
antirez
Mar 05, 2020
Browse files
Fix not used constant in lru_test_mode.
LRU_CYCLE_PERIOD is defined,but not used.
parent
6ef01878
Changes
1
Show whitespace changes
Inline
Side-by-side
src/redis-cli.c
View file @
4af0d7fd
...
...
@@ -7737,7 +7737,7 @@ static void LRUTestMode(void) {
* to fill the target instance easily. */
start_cycle
=
mstime
();
long
long
hits
=
0
,
misses
=
0
;
while
(
mstime
()
-
start_cycle
<
1000
)
{
while
(
mstime
()
-
start_cycle
<
LRU_CYCLE_PERIOD
)
{
/* Write cycle. */
for
(
j
=
0
;
j
<
LRU_CYCLE_PIPELINE_SIZE
;
j
++
)
{
char
val
[
6
];
...
...
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