Unverified Commit 2b09884f authored by Salvatore Sanfilippo's avatar Salvatore Sanfilippo Committed by GitHub
Browse files

Merge pull request #5392 from soloestoy/bugfix-brpoplpush

bugfix: replace lastcmd with cmd when rewrite BRPOPLPUSH as RPOPLPUSH
parents e19a06d2 fc9b4e79
...@@ -596,7 +596,7 @@ void rpoplpushCommand(client *c) { ...@@ -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]);
} }
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment