Convert objects in the command procs instead of the protocol code

This commit is contained in:
Pieter Noordhuis
2010-10-17 17:21:41 +02:00
parent b19c33d48a
commit 75b41de8ca
9 changed files with 31 additions and 10 deletions

View File

@ -410,6 +410,7 @@ void configGetCommand(redisClient *c) {
}
void configCommand(redisClient *c) {
c->argv[c->argc-1] = tryObjectEncoding(c->argv[c->argc-1]);
if (!strcasecmp(c->argv[1]->ptr,"set")) {
if (c->argc != 4) goto badarity;
configSetCommand(c);