Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ruanhaishen
redis
Commits
59146ef3
Commit
59146ef3
authored
Feb 06, 2010
by
antirez
Browse files
DEBUG OBJECT provide info about serialized object length even when VM is disabled
parent
6766f45e
Changes
1
Hide whitespace changes
Inline
Side-by-side
redis.c
View file @
59146ef3
...
...
@@ -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
"
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment