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
5faa6025
Commit
5faa6025
authored
Apr 10, 2009
by
antirez
Browse files
SINTER/SINTERSTORE/SLEMENTS fix: misisng keys are now not errors, but just like empty sets
parent
cc1db901
Changes
2
Hide whitespace changes
Inline
Side-by-side
TODO
View file @
5faa6025
BEFORE REDIS 1.0.0-rc1
BEFORE REDIS 1.0.0-rc1
- Fix INCRBY argument that is limited to 32bit int.
- Add a new field as INFO output: bgsaveinprogress
- Add a new field as INFO output: bgsaveinprogress
- Remove max number of args limit
- Remove max number of args limit
- GETSET
- GETSET
...
...
redis.c
View file @
5faa6025
...
@@ -2826,7 +2826,12 @@ static void sinterGenericCommand(redisClient *c, robj **setskeys, int setsnum, r
...
@@ -2826,7 +2826,12 @@ static void sinterGenericCommand(redisClient *c, robj **setskeys, int setsnum, r
lookupKeyRead(c->db,setskeys[j]);
lookupKeyRead(c->db,setskeys[j]);
if (!setobj) {
if (!setobj) {
zfree(dv);
zfree(dv);
addReply(c,shared.nokeyerr);
if (dstkey) {
deleteKey(c->db,dstkey);
addReply(c,shared.ok);
} else {
addReply(c,shared.nullmultibulk);
}
return;
return;
}
}
if (setobj->type != REDIS_SET) {
if (setobj->type != REDIS_SET) {
...
...
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