From b39619d8e73273cd679f560854e34a9a974d9eb4 Mon Sep 17 00:00:00 2001 From: antirez Date: Sat, 8 Jan 2011 02:06:01 +0100 Subject: [PATCH] DEBUG OBJECT fixed with diskstore, force loading --- src/debug.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/debug.c b/src/debug.c index 47d4c85df..a727962ea 100644 --- a/src/debug.c +++ b/src/debug.c @@ -198,11 +198,12 @@ void debugCommand(redisClient *c) { redisLog(REDIS_WARNING,"Append Only File loaded by DEBUG LOADAOF"); addReply(c,shared.ok); } else if (!strcasecmp(c->argv[1]->ptr,"object") && c->argc == 3) { - dictEntry *de = dictFind(c->db->dict,c->argv[2]->ptr); + dictEntry *de; robj *val; char *strenc; - if (!de) { + if (server.ds_enabled) lookupKeyRead(c->db,c->argv[2]); + if ((de = dictFind(c->db->dict,c->argv[2]->ptr)) == NULL) { addReply(c,shared.nokeyerr); return; }