last executed command in CLIENT LIST output.

This commit is contained in:
antirez
2011-11-24 14:56:34 +01:00
parent 3c95e7212e
commit 2c74a9f948
3 changed files with 6 additions and 5 deletions

View File

@ -1174,7 +1174,7 @@ int processCommand(redisClient *c) {
/* Now lookup the command and check ASAP about trivial error conditions
* such as wrong arity, bad command name and so forth. */
c->cmd = lookupCommand(c->argv[0]->ptr);
c->cmd = c->lastcmd = lookupCommand(c->argv[0]->ptr);
if (!c->cmd) {
addReplyErrorFormat(c,"unknown command '%s'",
(char*)c->argv[0]->ptr);