diff --git a/src/valkey-cli.c b/src/valkey-cli.c index 5270d66ff..81020cd93 100644 --- a/src/valkey-cli.c +++ b/src/valkey-cli.c @@ -8840,7 +8840,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) {