From b8450d7cc515a55f0e1278f70806c12cb6d9fa58 Mon Sep 17 00:00:00 2001 From: antirez Date: Mon, 18 Jul 2016 10:53:02 +0200 Subject: [PATCH] redis-cli LRU test mode: remove newline from key names. --- src/redis-cli.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/redis-cli.c b/src/redis-cli.c index 6aacecc7..7010e5e5 100644 --- a/src/redis-cli.c +++ b/src/redis-cli.c @@ -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)); }