Skip to content

Commit

Permalink
DEBUG OBJECT provide info about serialized object length even when VM…
Browse files Browse the repository at this point in the history
… is disabled
  • Loading branch information
antirez committed Feb 6, 2010
1 parent 6766f45 commit 59146ef
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions redis.c
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit 59146ef

Please sign in to comment.