From 6ae4c1fcbc59768406344e3f277f51a26fb719de 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 0cc8dcf2..b6735749 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));