mirror of
https://codeberg.org/redict/redict.git
synced 2025-01-22 16:18:28 -05: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…
Reference in New Issue
Block a user