]> git.saurik.com Git - redis.git/blobdiff - redis.c
DEBUG OBJECT provide info about serialized object length even when VM is disabled
[redis.git] / redis.c
diff --git a/redis.c b/redis.c
index 3326516864a206582ee685823d034a9143fffbfc..5da103d8773c35d44c2d4c32d41e1e6066d07a4d 100644 (file)
--- a/redis.c
+++ b/redis.c
@@ -873,7 +873,7 @@ static void redisLog(int level, const char *fmt, ...) {
 
     va_start(ap, fmt);
     if (level >= server.verbosity) {
-        char *c = ".-*";
+        char *c = ".-*#";
         char buf[64];
         time_t now;
 
@@ -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",