Document mostly dead code in RPOPLPUSH implementation.

This commit is contained in:
antirez 2012-04-18 17:38:02 +02:00
parent 79daddd5ba
commit 5ba79bda7f

View File

@ -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]);