summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatt Stancliff <matt@genges.com>2014-08-06 10:40:34 -0400
committerantirez <antirez@gmail.com>2014-08-25 10:19:43 +0200
commitaa404fc11be08f45fa0785c43f5fc7426e2b14a4 (patch)
treed3441ad7b184c5b6c879581b87565f2c8db17793
parentb34a8c3b754c97083e93f225e4dc6b262ff0a0de (diff)
downloadredis-aa404fc11be08f45fa0785c43f5fc7426e2b14a4.tar.gz
redis-benchmark: Remove unused buffer
This just deletes old code that didn't get removed when logic changed. We were setting offsets that never got read anywhere. Since clients are now just cloned, we don't need to track per-client buffer offsets anywhere because they are all the same from the original client.
-rw-r--r--src/redis-benchmark.c9
1 files changed, 0 insertions, 9 deletions
diff --git a/src/redis-benchmark.c b/src/redis-benchmark.c
index d8b49a710..2e0aa8a60 100644
--- a/src/redis-benchmark.c
+++ b/src/redis-benchmark.c
@@ -398,15 +398,6 @@ static client createClient(char *cmd, size_t len, client from) {
static void createMissingClients(client c) {
int n = 0;
- char *buf = c->obuf;
- size_t buflen = sdslen(c->obuf);
-
- /* If we are cloning from a client with a SELECT prefix, skip it since the
- * client will be created with the prefixed SELECT if needed. */
- if (c->selectlen) {
- buf += c->selectlen;
- buflen -= c->selectlen;
- }
while(config.liveclients < config.numclients) {
createClient(NULL,0,c);