mirror of
https://github.com/fluencelabs/redis
synced 2025-03-19 09:00:51 +00:00
redis-cli LRU test mode: remove newline from key names.
This commit is contained in:
parent
5d07984c5d
commit
b8450d7cc5
@ -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));
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user