mirror of
https://github.com/fluencelabs/redis
synced 2025-07-31 16:31:58 +00:00
Fixes to the new preloading / key discovery APIs
This commit is contained in:
3
src/db.c
3
src/db.c
@@ -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;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user