From 72ff03346fcf3d5a839b85bd1ebd7850c2e5d9aa Mon Sep 17 00:00:00 2001 From: antirez Date: Fri, 9 May 2014 15:02:29 +0200 Subject: [PATCH] DEBUG POPULATE: call dictExpand() to avoid useless rehashing. --- src/debug.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/debug.c b/src/debug.c index 1869f755..3fb491cb 100644 --- a/src/debug.c +++ b/src/debug.c @@ -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));