]> git.saurik.com Git - redis.git/commitdiff
SINTER/SINTERSTORE/SLEMENTS fix: misisng keys are now not errors, but just like empty...
authorantirez <antirez@gmail.com>
Fri, 10 Apr 2009 11:43:41 +0000 (13:43 +0200)
committerantirez <antirez@gmail.com>
Fri, 10 Apr 2009 11:43:41 +0000 (13:43 +0200)
TODO
redis.c

diff --git a/TODO b/TODO
index 32533ccf3b35acbba73952cdae8a0d9016392b47..5d565e99d583ff9b8accadc8f6f4f04a8d6650a1 100644 (file)
--- a/TODO
+++ b/TODO
@@ -1,5 +1,6 @@
 BEFORE REDIS 1.0.0-rc1
 
+- Fix INCRBY argument that is limited to 32bit int.
 - Add a new field as INFO output: bgsaveinprogress
 - Remove max number of args limit
 - GETSET
diff --git a/redis.c b/redis.c
index 05a623d56086ae2d2ef7e30d3e9c9fb932b0442d..1adfc8b363cf83d58e9b30e9652bd0925b45fbbc 100644 (file)
--- a/redis.c
+++ b/redis.c
@@ -2826,7 +2826,12 @@ static void sinterGenericCommand(redisClient *c, robj **setskeys, int setsnum, r
                     lookupKeyRead(c->db,setskeys[j]);
         if (!setobj) {
             zfree(dv);
-            addReply(c,shared.nokeyerr);
+            if (dstkey) {
+                deleteKey(c->db,dstkey);
+                addReply(c,shared.ok);
+            } else {
+                addReply(c,shared.nullmultibulk);
+            }
             return;
         }
         if (setobj->type != REDIS_SET) {