Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ruanhaishen
redis
Commits
5ba79bda
Commit
5ba79bda
authored
Apr 18, 2012
by
antirez
Browse files
Document mostly dead code in RPOPLPUSH implementation.
parent
79daddd5
Changes
1
Show whitespace changes
Inline
Side-by-side
src/t_list.c
View file @
5ba79bda
...
...
@@ -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]);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment