redis-cli LRU test mode: remove newline from key names.

This commit is contained in:
antirez 2016-07-18 10:53:02 +02:00
parent 5d07984c5d
commit b8450d7cc5

View File

@ -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 /* Generates a key name among a set of lru_test_sample_size keys, using
* an 80-20 distribution. */ * an 80-20 distribution. */
void LRUTestGenKey(char *buf, size_t buflen) { 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)); powerLawRand(1, config.lru_test_sample_size, 6.2));
} }