diff --git a/src/redis-cli.c b/src/redis-cli.c index 5c5c2b912..10b94bdc8 100644 --- a/src/redis-cli.c +++ b/src/redis-cli.c @@ -8883,7 +8883,8 @@ static redisReply *sendScan(unsigned long long *it) { reply = redisCommand(context, "SCAN %llu MATCH %b COUNT %d", *it, config.pattern, sdslen(config.pattern), config.count); else - reply = redisCommand(context,"SCAN %llu",*it); + reply = redisCommand(context, "SCAN %llu COUNT %d", + *it, config.count); /* Handle any error conditions */ if(reply == NULL) {