Document mostly dead code in RPOPLPUSH implementation.
This commit is contained in:
parent
79daddd5ba
commit
5ba79bda7f
@ -699,6 +699,8 @@ void rpoplpushCommand(redisClient *c) {
|
||||
checkType(c,sobj,REDIS_LIST)) return;
|
||||
|
||||
if (listTypeLength(sobj) == 0) {
|
||||
/* This may only happen after loading very old RDB files. Recent
|
||||
* versions of Redis delete keys of empty lists. */
|
||||
addReply(c,shared.nullbulk);
|
||||
} else {
|
||||
robj *dobj = lookupKeyWrite(c->db,c->argv[2]);
|
||||
|
Loading…
x
Reference in New Issue
Block a user