Skip to content

Commit

Permalink
Cluster: evalGetKeys() fixed: was not setting keys count.
Browse files Browse the repository at this point in the history
  • Loading branch information
antirez committed Mar 10, 2014
1 parent 0334419 commit 21765c8
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/db.c
Expand Up @@ -1020,6 +1020,7 @@ int *evalGetKeys(struct redisCommand *cmd, robj **argv, int argc, int *numkeys)
}

keys = zmalloc(sizeof(int)*num);
*numkeys = num;

/* Add all key positions for argv[3...n] to keys[] */
for (i = 0; i < num; i++) keys[i] = 3+i;
Expand Down

0 comments on commit 21765c8

Please sign in to comment.