ZPOP: invert score-ele to match ZRANGE WITHSCORES order.

This commit is contained in:
antirez
2018-06-05 17:01:47 +02:00
parent 9e25f3e1de
commit 0a698e499a
2 changed files with 26 additions and 26 deletions

View File

@ -3163,8 +3163,8 @@ void genericZpopCommand(client *c, robj **keyv, int keyc, int where, int emitkey
signalModifiedKey(c->db,key);
}
addReplyDouble(c,score);
addReplyBulkCBuffer(c,ele,sdslen(ele));
addReplyDouble(c,score);
sdsfree(ele);
arraylen += 2;