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
b8450d7c
"src/redis-check-aof.c" did not exist on "e51fa063db5fbb53c754738d87146551aebfd8e2"
Commit
b8450d7c
authored
Jul 18, 2016
by
antirez
Browse files
redis-cli LRU test mode: remove newline from key names.
parent
5d07984c
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/redis-cli.c
View file @
b8450d7c
...
...
@@ -2402,7 +2402,7 @@ long long powerLawRand(long long min, long long max, double alpha) {
/* Generates a key name among a set of lru_test_sample_size keys, using
* an 80-20 distribution. */
void
LRUTestGenKey
(
char
*
buf
,
size_t
buflen
)
{
snprintf
(
buf
,
buflen
,
"lru:%lld
\n
"
,
snprintf
(
buf
,
buflen
,
"lru:%lld"
,
powerLawRand
(
1
,
config
.
lru_test_sample_size
,
6
.
2
));
}
...
...
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