Permalink
Browse files

Cluster: evalGetKeys() fixed: was not setting keys count.

  • Loading branch information...
1 parent 0334419 commit 21765c858886bfeb1349ab83dccb1113b5e55d2c @antirez committed Mar 10, 2014
Showing with 1 addition and 0 deletions.
  1. +1 −0 src/db.c
View
@@ -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;

0 comments on commit 21765c8

Please sign in to comment.