Skip to content

Commit

Permalink
Fixed MONITOR output for consistency: now integer encoded values are …
Browse files Browse the repository at this point in the history
…also formatted like this: "3932"
  • Loading branch information
antirez committed Jul 1, 2010
1 parent c7543ab commit f9231c2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion redis.c
Expand Up @@ -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));
Expand Down

0 comments on commit f9231c2

Please sign in to comment.