DEBUG OBJECT provide info about serialized object length even when VM is disabled

This commit is contained in:
antirez 2010-02-06 18:53:39 +01:00
parent 6766f45ef2
commit 59146ef3c1

View File

@ -8171,7 +8171,7 @@ static void debugCommand(redisClient *c) {
}
key = dictGetEntryKey(de);
val = dictGetEntryVal(de);
if (server.vm_enabled && (key->storage == REDIS_VM_MEMORY ||
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 "