Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ruanhaishen
redis
Commits
21765c85
Commit
21765c85
authored
Mar 10, 2014
by
antirez
Browse files
Cluster: evalGetKeys() fixed: was not setting keys count.
parent
03344196
Changes
1
Show whitespace changes
Inline
Side-by-side
src/db.c
View file @
21765c85
...
@@ -1020,6 +1020,7 @@ int *evalGetKeys(struct redisCommand *cmd, robj **argv, int argc, int *numkeys)
...
@@ -1020,6 +1020,7 @@ int *evalGetKeys(struct redisCommand *cmd, robj **argv, int argc, int *numkeys)
}
}
keys
=
zmalloc
(
sizeof
(
int
)
*
num
);
keys
=
zmalloc
(
sizeof
(
int
)
*
num
);
*
numkeys
=
num
;
/* Add all key positions for argv[3...n] to keys[] */
/* Add all key positions for argv[3...n] to keys[] */
for
(
i
=
0
;
i
<
num
;
i
++
)
keys
[
i
]
=
3
+
i
;
for
(
i
=
0
;
i
<
num
;
i
++
)
keys
[
i
]
=
3
+
i
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment