From d3b958c3fc32be66dac929ede482ef5fe8f5b462 Mon Sep 17 00:00:00 2001 From: antirez Date: Thu, 1 Jul 2010 20:22:46 +0200 Subject: [PATCH] Fixed MONITOR output for consistency: now integer encoded values are also formatted like this: "3932" --- src/replication.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/replication.c b/src/replication.c index ecb04ce1a..5387db913 100644 --- a/src/replication.c +++ b/src/replication.c @@ -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)); -- GitLab