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
72ff0334
Commit
72ff0334
authored
May 09, 2014
by
antirez
Browse files
DEBUG POPULATE: call dictExpand() to avoid useless rehashing.
parent
8a170c81
Changes
1
Show whitespace changes
Inline
Side-by-side
src/debug.c
View file @
72ff0334
...
...
@@ -326,6 +326,7 @@ void debugCommand(redisClient *c) {
if
(
getLongFromObjectOrReply
(
c
,
c
->
argv
[
2
],
&
keys
,
NULL
)
!=
REDIS_OK
)
return
;
dictExpand
(
c
->
db
->
dict
,
keys
);
for
(
j
=
0
;
j
<
keys
;
j
++
)
{
snprintf
(
buf
,
sizeof
(
buf
),
"key:%lu"
,
j
);
key
=
createStringObject
(
buf
,
strlen
(
buf
));
...
...
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