Commit 59146ef3 authored by antirez's avatar antirez
Browse files

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

parent 6766f45e
...@@ -8171,7 +8171,7 @@ static void debugCommand(redisClient *c) { ...@@ -8171,7 +8171,7 @@ static void debugCommand(redisClient *c) {
} }
key = dictGetEntryKey(de); key = dictGetEntryKey(de);
val = dictGetEntryVal(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)) { key->storage == REDIS_VM_SWAPPING)) {
addReplySds(c,sdscatprintf(sdsempty(), addReplySds(c,sdscatprintf(sdsempty(),
"+Key at:%p refcount:%d, value at:%p refcount:%d " "+Key at:%p refcount:%d, value at:%p refcount:%d "
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment