Permalink
Browse files

Fixed MONITOR output for consistency: now integer encoded values are …

…also formatted like this: "3932"
  • Loading branch information...
1 parent c7543ab commit f9231c2c9a0ebc890f3304af924c9112265ec145 @antirez committed Jul 1, 2010
Showing with 1 addition and 1 deletion.
  1. +1 −1 redis.c
View
@@ -2555,7 +2555,7 @@ static void replicationFeedMonitors(list *monitors, int dictid, robj **argv, int
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));

0 comments on commit f9231c2

Please sign in to comment.