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);
|
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 "
|
||||||
"encoding:%d serializedlength:%lld\r\n",
|
"encoding:%d serializedlength:%lld\r\n",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user