mirror of
https://github.com/fluencelabs/redis
synced 2025-03-30 22:31:03 +00:00
SINTER/SINTERSTORE/SLEMENTS fix: misisng keys are now not errors, but just like empty sets
This commit is contained in:
parent
cc1db901e9
commit
5faa6025f5
1
TODO
1
TODO
@ -1,5 +1,6 @@
|
|||||||
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
|
||||||
|
7
redis.c
7
redis.c
@ -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) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user