From: antirez Date: Sat, 6 Feb 2010 17:53:39 +0000 (+0100) Subject: DEBUG OBJECT provide info about serialized object length even when VM is disabled X-Git-Url: https://git.saurik.com/redis.git/commitdiff_plain/59146ef3c107d59b6522b8a2f5539a55703adee1 DEBUG OBJECT provide info about serialized object length even when VM is disabled --- diff --git a/redis.c b/redis.c index 2f5abc8a..5da103d8 100644 --- a/redis.c +++ b/redis.c @@ -8171,8 +8171,8 @@ static void debugCommand(redisClient *c) { } key = dictGetEntryKey(de); val = dictGetEntryVal(de); - if (server.vm_enabled && (key->storage == REDIS_VM_MEMORY || - key->storage == REDIS_VM_SWAPPING)) { + if (!server.vm_enabled || (key->storage == REDIS_VM_MEMORY || + key->storage == REDIS_VM_SWAPPING)) { addReplySds(c,sdscatprintf(sdsempty(), "+Key at:%p refcount:%d, value at:%p refcount:%d " "encoding:%d serializedlength:%lld\r\n",