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

This commit is contained in:
antirez 2014-03-10 16:23:42 +01:00
parent 03344196f3
commit 21765c8588

View File

@ -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;