mirror of
https://github.com/fluencelabs/redis
synced 2025-03-18 08:30:51 +00:00
DEBUG POPULATE: call dictExpand() to avoid useless rehashing.
This commit is contained in:
parent
8a170c817d
commit
72ff03346f
@ -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));
|
||||
|
Loading…
x
Reference in New Issue
Block a user