Merge pull request #5392 from soloestoy/bugfix-brpoplpush

bugfix: replace lastcmd with cmd when rewrite BRPOPLPUSH as RPOPLPUSH
This commit is contained in:
Salvatore Sanfilippo 2018-10-02 16:09:22 +02:00 committed by GitHub
commit 2b09884faf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -596,7 +596,7 @@ void rpoplpushCommand(client *c) {
signalModifiedKey(c->db,touchedkey); signalModifiedKey(c->db,touchedkey);
decrRefCount(touchedkey); decrRefCount(touchedkey);
server.dirty++; server.dirty++;
if (c->lastcmd->proc == brpoplpushCommand) { if (c->cmd->proc == brpoplpushCommand) {
rewriteClientCommandVector(c,3,shared.rpoplpush,c->argv[1],c->argv[2]); rewriteClientCommandVector(c,3,shared.rpoplpush,c->argv[1],c->argv[2]);
} }
} }