Fixes to the new preloading / key discovery APIs

This commit is contained in:
antirez
2011-03-28 17:54:42 +02:00
parent 42b2621cdc
commit b4b5144694
2 changed files with 11 additions and 58 deletions

View File

@@ -634,8 +634,9 @@ int *getKeysUsingCommandTable(struct redisCommand *cmd,robj **argv, int argc, in
keys = zmalloc(sizeof(int)*((last - cmd->firstkey)+1));
for (j = cmd->firstkey; j <= last; j += cmd->keystep) {
redisAssert(j < argc);
keys[i] = j;
keys[i++] = j;
}
*numkeys = i;
return keys;
}