From 59146ef3c107d59b6522b8a2f5539a55703adee1 Mon Sep 17 00:00:00 2001 From: antirez Date: Sat, 6 Feb 2010 18:53:39 +0100 Subject: [PATCH] DEBUG OBJECT provide info about serialized object length even when VM is disabled --- redis.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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", -- 2.47.2