]> git.saurik.com Git - redis.git/commitdiff
Fixed command table for RESTORE to make it accepting keys only for the right slots...
authorantirez <antirez@gmail.com>
Thu, 29 Sep 2011 13:14:06 +0000 (15:14 +0200)
committerantirez <antirez@gmail.com>
Thu, 29 Sep 2011 13:14:06 +0000 (15:14 +0200)
src/redis.c

index 94daf3488771c3e9f597b85cf0b8511c65eadee8..0bcb3fe4c0f703bb8febf97ab8e6ef8a46753b8a 100644 (file)
@@ -207,7 +207,7 @@ struct redisCommand redisCommandTable[] = {
     {"watch",watchCommand,-2,"rs",0,noPreloadGetKeys,1,-1,1,0,0},
     {"unwatch",unwatchCommand,1,"rs",0,NULL,0,0,0,0,0},
     {"cluster",clusterCommand,-2,"ar",0,NULL,0,0,0,0,0},
-    {"restore",restoreCommand,4,"awm",0,NULL,0,0,0,0,0},
+    {"restore",restoreCommand,4,"awm",0,NULL,1,1,1,0,0},
     {"migrate",migrateCommand,6,"aw",0,NULL,0,0,0,0,0},
     {"dump",dumpCommand,2,"ar",0,NULL,0,0,0,0,0},
     {"object",objectCommand,-2,"r",0,NULL,0,0,0,0,0},