]> git.saurik.com Git - redis.git/commitdiff
Fixed MONITOR output for consistency: now integer encoded values are also formatted...
authorantirez <antirez@gmail.com>
Thu, 1 Jul 2010 18:22:46 +0000 (20:22 +0200)
committerantirez <antirez@gmail.com>
Thu, 1 Jul 2010 18:22:46 +0000 (20:22 +0200)
src/replication.c

index ecb04ce1a065dd1b65f3474f0b1ec6c2360c6e8a..5387db913cc39719bc820a0d066e0c326fc6fca5 100644 (file)
@@ -91,7 +91,7 @@ void replicationFeedMonitors(list *monitors, int dictid, robj **argv, int argc)
 
     for (j = 0; j < argc; j++) {
         if (argv[j]->encoding == REDIS_ENCODING_INT) {
-            cmdrepr = sdscatprintf(cmdrepr, "%ld", (long)argv[j]->ptr);
+            cmdrepr = sdscatprintf(cmdrepr, "\"%ld\"", (long)argv[j]->ptr);
         } else {
             cmdrepr = sdscatrepr(cmdrepr,(char*)argv[j]->ptr,
                         sdslen(argv[j]->ptr));