mirror of
https://github.com/fluencelabs/redis
synced 2025-03-19 09:00:51 +00:00
DEBUG OBJECT provide info about serialized object length even when VM is disabled
This commit is contained in:
parent
6766f45ef2
commit
59146ef3c1
4
redis.c
4
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",
|
||||
|
Loading…
x
Reference in New Issue
Block a user