SCAN option name changed: pattern -> match.

This commit is contained in:
antirez 2013-10-25 11:45:32 +02:00
parent b63fbea5e4
commit 9c88ace927

View File

@ -360,7 +360,7 @@ void scanCommand(redisClient *c) {
}
i += 2;
} else if (!strcasecmp(c->argv[i]->ptr, "pattern") && j >= 2) {
} else if (!strcasecmp(c->argv[i]->ptr, "match") && j >= 2) {
pat = c->argv[i+1]->ptr;
patlen = sdslen(pat);