diff options
author | Salvatore Sanfilippo <antirez@gmail.com> | 2018-10-02 16:09:22 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-10-02 16:09:22 +0200 |
commit | 2b09884faf85d3fbd58a85ad1902e090099101f1 (patch) | |
tree | 667dca872ef59fb20e5fb660b68a0b936b513268 | |
parent | e19a06d2dd43473d87e002f59e9469b3548a10dd (diff) | |
parent | fc9b4e79589c049276ff4c7cf536b49d700f8cee (diff) | |
download | redis-2b09884faf85d3fbd58a85ad1902e090099101f1.tar.gz |
Merge pull request #5392 from soloestoy/bugfix-brpoplpush
bugfix: replace lastcmd with cmd when rewrite BRPOPLPUSH as RPOPLPUSH
-rw-r--r-- | src/t_list.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/t_list.c b/src/t_list.c index 987392e6e..c8f4703d5 100644 --- a/src/t_list.c +++ b/src/t_list.c @@ -596,7 +596,7 @@ void rpoplpushCommand(client *c) { signalModifiedKey(c->db,touchedkey); decrRefCount(touchedkey); server.dirty++; - if (c->lastcmd->proc == brpoplpushCommand) { + if (c->cmd->proc == brpoplpushCommand) { rewriteClientCommandVector(c,3,shared.rpoplpush,c->argv[1],c->argv[2]); } } |