diff options
author | antirez <antirez@gmail.com> | 2012-04-18 17:38:02 +0200 |
---|---|---|
committer | antirez <antirez@gmail.com> | 2012-04-18 21:23:00 +0200 |
commit | 60ef787efad8be46afa29ec751532e3ea7ebd70c (patch) | |
tree | af5b78744f230a94494d1e4af127c8437bed377f /src/t_list.c | |
parent | bec200ec399690fb7203257732cd2a6b47bdb962 (diff) | |
download | redis-60ef787efad8be46afa29ec751532e3ea7ebd70c.tar.gz |
Document mostly dead code in RPOPLPUSH implementation.
Diffstat (limited to 'src/t_list.c')
-rw-r--r-- | src/t_list.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/t_list.c b/src/t_list.c index 6a16a6320..ca03916b9 100644 --- a/src/t_list.c +++ b/src/t_list.c @@ -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]); |